GetEntData Function

Peeks into an entity's object data and retrieves the integer value at the given offset.

int GetEntData(int entity, int offset, int size)


int entity

Edict index.

int offset

Offset to use.

int size

Number of bytes to read (valid values are 1, 2, or 4).

Return Value

Value at the given memory location.


Invalid entity or offset out of reasonable bounds.