entity
entity datatype
Entity
get_index
local ent = entities.get_entity(1)ent:get_index()
Returns:
is_player
local ent = entities.get_entity(1)ent:is_player()
Returns:
get_class
ent:get_class() -- ex: CCSPlayer
Returns:
get_prop
ent:get_prop("m_hMyWeapons", 1)
table index
number
index of prop if it is an array
0
Returns:
set_prop
ent:set_prop("m_bSpotted", 0, true)
table index
number
index of prop if it is an array
value
any
value to set prop to
Usage:
Sets prop's value.
is_alive
ent:is_alive()
Returns:
get_esp_alpha
Returns:
Player
is_valid
local player = entities.get_entity(engine.get_local_player())player:is_valid()
Returns:
is_enemy
player:is_enemy()
Returns:
get_player_info
player:get_player_info()
Returns:
the player's info
get_bbox
local x1, y1, x2, y2 = player:get_bbox()
Returns:
Only works on enemy players!
get_weapon
player:get_weapon()
Returns:
get_eye_position
player:get_eye_position()
Returns:
get_hitbox_position
player:get_hitbox_position(1)
hitbox_index
number
the hitbox id
Returns:
Last updated