KeyValues.GetVector Method

Retrieves a vector value from a KeyValues key.

void GetVector(const char[] key, float vec[3], const float defvalue[3])

Parameters

const char[] key

Name of the key, or NULL_STRING.

float[3] vec

Destination vector to store the value in.

const float[3] defvalue

Optional default value to use if the key is not found.