GetEntDataVector

Last Updated2016-05-21
Created At2007-03-02

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

Notes

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

native 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.

Return Value

void

Error

Invalid entity or offset out of reasonable bounds.