Skip to content

GameHooks

The GameHooks API provides ways to hook into certain game events from any context. To add a hook:

GameHooks.EventName["HookName"] = function(parameters...) end

where EventName is one of the properties below. The parameters received are also detailed below.

These hooks are run when a player dies.

NameTypeDefaultDescription
roundRoundThe round.
participantParticipantThe player who died.
deferbooleanIf true, death processing is deferred.

These hooks run when a player drops an item.

NameTypeDefaultDescription
roundRoundThe round.
participantParticipantThe player who dropped the item.
itemItemThe item.

Runs before a player takes damage. Changes to the DamageParams object will be preserved, meaning you can do things like changing the damage.

NameTypeDefaultDescription
roundRoundThe round.
participantParticipantThe player who is taking damage.
paramsDamageParamsThe DamageParams.