entity_t
In all examples below, ent is an instance of entity_t
general Functions
Functions in this group can be called on all types of entities
get_address
returns the entity address for ease of use in ffi.* functions
Example
get_class_name
returns the entity class name (i.e. "CCSPlayer")
Example
get_class_id
returns the entity class id
Example
get_steamids
returns the entitiy steamID3 as a number and steamID64 as a string
Example
get_prop
returns specified entity prop
Fields | Description |
---|---|
| networked prop name |
| [optional] array index to use if the prop is an array |
Example
set_prop
sets a specified entity prop
Fields | Description |
---|---|
| networked prop name |
| value to set the prop to |
| [optional] array index to use if the prop is an array |
Example
get_render_origin
returns the render origin
Example
get_render_angles
returns the render angles
Example
is_dormant
if true, new information about this player isnt being networked right now
Example
is_player
checks whether the entity is a player
Example
is_weapon
checks whether the entity is a weapon
Example
get_name
- for players: returns their name; - for weapons: returns the weapon name - for other entities: returns the class name
Example
get_index
returns the entity index
Example
get_bounds
returns the relative mins/maxs of the entity
Example
player functions
Functions in this group can be called only on players In the following examples pl is a player entity
has_player_flag
checks whether the specified player flag is set
Example
get_active_weapon
returns the current weapon as an entity object or nil on failure
Example
is_alive
is breathe?
Example
get_eye_position
returns the world coordinates of where your shots come from
Example
is_point_visible
checks if a specified world coordinate is visible
Example
get_hitbox_pos
HITBOX POS!!!!!!!
Example
is_enemy
what do u think
Example
weapon functions
Functions in this group can be called only on weapons In the following examples wep is a weapon entity
get_weapon_spread
gets the current weapon spread
Example
get_weapon_inaccuracy
gets the current weapon inaccuracy
Example
get_weapon_data
gets the current weapon data
Example
Last updated