Functions

engine.inc

amxmodx 1.8.2 hg65

Function Type Description
client_PostThink forward This function has no description.
client_PreThink forward Forward for PreThink()/PostThink() on a player.
client_impulse forward Forward for impulses.
client_kill forward Called when a client types kill in console.
pfn_keyvalue forward Called when an entity gets a keyvalue set on it from the engine (ie: map load) Use copy_keyvalue to get the keyvalue information
pfn_playbackevent forward Called when an event is played
pfn_spawn forward Called when an entity is spawned
pfn_think forward Called when an entity "thinks" (DispatchThink)
pfn_touch forward Called when 2 entities touch.
ptr - touched entity
ptd - toucher entity
server_frame forward Called once every server frame. May cause lag.
DispatchKeyValue native This function has no description.
DispatchSpawn native Runs the GameDLL's DispatchSpawn for an entity, I think it's used with DispatchKeyValue.
attach_view native Sets Player's View to entity iTargetIndex.
call_think native This function has no description.
copy_keyvalue native This function has no description.
create_entity native Creates an entity, will return the index of the created entity. ClassName must be valid.
drop_to_floor native Drops an entity to the floor (work?)
eng_get_string native Converts a string offset into a real string. Some of the forwards in fakemeta
uses string offsets. (FM_CreateNamedEntity)
entity_count native Return current number of entities in the map
entity_get_byte native This function has no description.
entity_get_edict native This function has no description.
entity_get_float native This function has no description.
entity_get_int native Sets/gets things in an entities Entvars Struct.
entity_get_string native This function has no description.
entity_get_vector native This function has no description.
entity_range native Returns the distance between two entities.
entity_set_byte native This function has no description.
entity_set_edict native This function has no description.
entity_set_float native This function has no description.
entity_set_int native This function has no description.
entity_set_model native Sets the model of an Entity.
entity_set_origin native Proper origin setting, keeps updated with Half-Life engine.
entity_set_size native Set entity bounds.
entity_set_string native This function has no description.
entity_set_vector native This function has no description.
fake_touch native Simulate two entities colliding/touching.
find_ent_by_class native Finds an entity in the world, will return 0 if nothing is found
find_ent_by_model native This function has no description.
find_ent_by_owner native This function has no description.
find_ent_by_target native This function has no description.
find_ent_by_tname native This function has no description.
find_ent_in_sphere native This function has no description.
find_sphere_class native As above, but returns number of ents stored in entlist. Use to find a specific type of entity classname (specify in _lookforclassname) around a
certain entity specified in aroundent. All matching ents are stored in entlist. Specify max amount of entities to find in maxents.
If aroundent is 0 its origin is not used, but origin in 6th parameter. Ie, do not specify 6th parameter (origin) if you specified an entity
in aroundent.
force_use native Use an entity with another entity. "entUsed" could be a hostage, "entUser" a player.
get_decal_index native Get decal index
get_global_edict native This function has no description.
get_global_float native Get globals from server.
get_global_int native This function has no description.
get_global_string native This function has no description.
get_global_vector native This function has no description.
get_grenade_id native Gets the ID of a grenade.
get_info_keybuffer native Get whole buffer containing keys and their data.
get_keyvalue native This function has no description.
get_speak native This function has no description.
get_usercmd native Gets parameters sent from CmdStart.
Note that you will receive modified values if any other plugin have
changed them.
halflife_time native Gets gpGlobals->time from Half-Life
is_in_viewcone native SDK function - checks if an origin is in an entity's view cone
Set use3d to 1 to do the calculation in 3D. Otherwise it will be in 2D.
is_valid_ent native Is entity valid?
is_visible native This function has no description.
playback_event native Direct copy of PLAYBACK_EVENT_FULL from Metamod/HLSDK. If you don't know how that works, you probably shouldn't be using it.
point_contents native Will return the contents of a point (inside map? in sky? outside map? etc.).
precache_event native Precaches an event.
radius_damage native This function has no description.
register_impulse native Registers a client impulse to a function. Function is passed the ID of the user.
register_think native Registers a think action to a function by classname.
register_touch native Registers a touch action to a function by classnames. Use * to specify any classname.
remove_entity native Remove an entity from the world.
set_lights native Sets map lighting, #OFF to disable.
set_speak native set/get a user's speak flags
set_usercmd native Sets the parameters sent from CmdStart.
Note that your changes will be seen by any other plugin doing get_usercmd()
set_view native Sets Player's View Mode.
rpgrocket.mdl must be precached in order for this function to work
trace_forward native This function has no description.
trace_hull native Traces a hull.
trace_line native This function has no description.
trace_normal native Traces a line, and returns the normal to the plane hit in vReturn.
Returns 0 if theres no normal.
traceresult native This function has no description.