Functions

xtrafun.inc

amxmodx 1.8.2 hg65

Function Type Description
current_num_ents stock Find the number of entities in the game
find_entity stock Find an entity ID from start_from_ent id (use 0 to start from
the beginning, category is either "classname", "target" or
"targetname", value is the name you are searching for
get_entity_origin stock Gets the origin of an entity
get_entity_velocity stock Gets the velocity of an entity
get_grenade_index stock Get the index of the grenade belonging to index.
Model of grenade is returned in model[].
Specify the grenadeindex to start searching from,
or leave it at 0 to search from the start.
Returns grenade index.
Paths + models of grenades in Counter-Strike:
HEGRENADE = "models/w_hegrenade.mdl"
FLASHBANG = "models/w_flashbang.mdl"
SMOKEGRENADE = "models/w_smokegrenade.mdl"
set_entity_origin stock Sets the origin of an entity
set_entity_velocity stock Sets the velocity of an entity