SetEntDataEnt2 Function

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.

void SetEntDataEnt2(int entity, int offset, int other, bool changeState)

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.

Errors

Invalid input entity, or offset out of reasonable bounds.