Skip to content

GameEvent

Used in the FireGameEvent callback. Contains the event data. You can find more information about game events on the Alliedmods Wiki.

Methods

IsValid()

Returns if the instance is valid. This runs before every other function.

GetName()

Returns the name of the event as a string.

GetBool(key)

Returns the value of the specified key as a boolean.

GetInt(key)

Returns the value of the specified key as an integer.

GetFloat(key)

Returns the value of the specified key as a float.

GetString(key)

Returns the value of the specified key as a string.

SetBool(key, value)

Sets the value of the specified key as a boolean.

SetInt(key, value)

Sets the value of the specified key as an integer.

SetFloat(key, value)

Sets the value of the specified key as a float.

SetString(key, value)

Sets the value of the specified key as a string.