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])

Parameters

int entity

Edict index.

int offset

Offset to use.

float[3] vec

Vector buffer to store data in.

Errors

Invalid entity or offset out of reasonable bounds.

Notes

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