KeyValues.GetNum Method

Retrieves an integer value from a KeyValues key.

int GetNum(const char[] key, int defvalue)

Parameters

const char[] key

Name of the key, or NULL_STRING.

int defvalue

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

Return Value

Integer value of the key.