KvGetVector Function

Retrieves a vector value from a KeyValues key.

void KvGetVector(Handle kv, const char[] key, float vec[3], const float defvalue[3])

Parameters

Handle kv

KeyValues Handle.

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.

Errors

Invalid Handle.