local local_player = engine.get_local_player()
local local_player_alive = local_player:get_netvar_int("m_lifeState") ~= 0
Function Parameter | Return Type | Description | |
---|---|---|---|
get_netvar_int | string var |
int |
|
get_netvar_float | string var |
float |
|
get_netvar_bool | string var |
bool |
|
get_netvar_string | string var |
string |
|
get_netvar_c_vector3d | string var |
[`c_vector3d`](c\_vector3d.md) |
|
get_netvar_handle | string var |
c_base_handle |
|
set_netvar_int | (string var, int value) |
void |
|
set_netvar_float | (string var, float value) |
void |
|
set_netvar_bool | (string var, bool value) |
void |
|
set_netvar_string | (string var, string value) |
void |
|
set_netvar_c_vector3d | (string var, c_vector3d value) |
void |
|
is_dormant | void |
bool |
|
get_class_id | void |
int |
|
get_class_name | void |
string |
|
is_player | void |
bool |
|
is_weapon | void |
bool |
|
get_render_origin | void |
c_vector3d `` |
|
get_index | void |
int |