SetEntDataEnt2

Last Updated2016-05-21
Created At2008-01-13

Peeks into an entity's object data and sets 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 void SetEntDataEnt2(int entity, int offset, int other, bool changeState = false)

Parameters

int entity
Edict index.
int offset
Offset to use.
int other
Entity index to set, or -1 to clear.
bool changeState
If true, change will be sent over the network.

Return Value

void

Error

Invalid input entity, or offset out of reasonable bounds.