SetEntDataVector Function

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

void SetEntDataVector(int entity, int offset, const float vec[3], bool changeState)


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.


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.