SetEntDataVector

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

Peeks into an entity's object data and sets 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 SetEntDataVector(int entity, int offset, const float vec[3], bool changeState = false)

Parameters

int entity
Edict index.
int offset
Offset to use.
const float[3] vec
Vector to set.
bool changeState
If true, change will be sent over the network.

Return Value

void

Error

Invalid entity or offset out of reasonable bounds.