GetEntDataEnt2

Last Updated2008-01-13
Created At2008-01-13

Peeks into an entity's object data and retrieves the entity index at the given offset. Note: This will only work on offsets that are stored as "entity handles" (which usually looks like m_h* in properties). These are not SourceMod Handles, but internal Source structures.

native int GetEntDataEnt2(int entity, int offset)

Parameters

int entity
Edict index.
int offset
Offset to use.

Return Value

int Entity index at the given location. If there is no entity, or the stored entity is invalid, then -1 is returned.

Error

Invalid input entity, or offset out of reasonable bounds.