GetEventInt Function

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

int GetEventInt(Handle event, const char[] key, int defValue)


Handle event

Handle to the event.

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.


Invalid or corrupt Handle.