GetEventFloat Function

Returns the floating point value of a game event's key.

float GetEventFloat(Handle event, const char[] key, float defValue)

Parameters

Handle event

Handle to the event.

const char[] key

Name of event key.

float defValue

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

Return Value

The floating point value of the specified event key.

Errors

Invalid or corrupt Handle.