SetEntPropFloat

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

Sets a float value in an entity's property. This function is considered safer and more robust over SetEntDataFloat, because it performs strict offset checking and typing rules.

native void SetEntPropFloat(int entity, PropType type, const char[] prop, float value, int element = 0)

Parameters

int entity
Entity/edict index.
Property type.
const char[] prop
Property name.
float value
Value to set.
int element
Element # (starting from 0) if property is an array.

Return Value

void

Error

Invalid entity or offset out of reasonable bounds.