GetEntDataEnt2 Function

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.

int GetEntDataEnt2(int entity, int offset)


int entity

Edict index.

int offset

Offset to use.

Return Value

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


Invalid input entity, or offset out of reasonable bounds.