GetEntDataVector Function

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

void GetEntDataVector(int entity, int offset, float vec[3])


int entity

Edict index.

int offset

Offset to use.

float[3] vec

Vector buffer to store data in.


Invalid entity or offset out of reasonable bounds.


Both a Vector and a QAngle are three floats. This is a convenience function and will work with both types.