SetEntDataFloat Function

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

void SetEntDataFloat(int entity, int offset, float value, bool changeState)

Parameters

int entity

Edict index.

int offset

Offset to use.

float value

Value to set.

bool changeState

If true, change will be sent over the network.

Errors

Invalid entity or offset out of reasonable bounds.