GameRules_GetPropVector Function

Retrieves a vector of floats from the gamerules entity, given a named network property.

void GameRules_GetPropVector(const char[] prop, float vec[3], int element)

Parameters

const char[] prop

Property name.

float[3] vec

Vector buffer to store data in.

int element

Element # (starting from 0) if property is an array.

Errors

Prop type is not a vector, or lack of mod support.