SetEntPropVector

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

Sets a vector of floats in an entity, given a named network property. This function is considered safer and more robust over SetEntDataVector, because it performs strict offset checking and typing rules.

native void SetEntPropVector(int entity, PropType type, const char[] prop, const float vec[3], int element = 0)

Parameters

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

Return Value

void

Error

Invalid entity, property not found, or property not actually a vector data type.