KvGetVector

Last Updated2014-11-08
Created At2007-12-01

Retrieves a vector value from a KeyValues key.

native void KvGetVector(Handle kv, const char[] key, float vec[3], const float defvalue[3] = { 0.000000, 0.000000, 0.000000 })

Parameters

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.

Return Value

void

Error

Invalid Handle.