Event.GetBool Method

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

bool GetBool(const char[] key, bool defValue)

Parameters

const char[] key

Name of event key.

bool defValue

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

Return Value

The boolean value of the specified event key.