Entities
entities namespace
Functions
get_entity
Parameter
Datatype
Description
entity index
number
entity's server index
Returns:
Value
Datatype
entity's object
entity
get_entity_from_handle
Parameter
Datatype
Description
entity handle
number
a handle to the entity ex: m_hMyWeapons[1]
Returns:
Value
Datatype
entity's object
entity
for_each
Parameter
Datatype
Description
function callback
function
A function to use as a callback.
Must have 1 argument for the entity.
Usage:
Runs for each entity on the server.
for_each_z
Parameter
Datatype
Description
function callback
function
A function to use as a callback.
Must have 1 argument for the entity.
Usage:
Runs for each entity on the server starting from the end.
for_each_player
Parameter
Datatype
Description
function callback
function
A function to use as a callback.
Must have 1 argument for the player.
Usage:
Runs for each player on the server.
Last updated