Event.GetInt Method

Returns the integer value of a game event's key.

int GetInt(const char[] key, int defValue)

Parameters

const char[] key

Name of event key.

int defValue

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

Return Value

The integer value of the specified event key.