Skip to main content

StayingInHazard

Gets called when player has entered any environmental hazard.

Start a script section

!-- OnEvent StayingInHazard
-- require @evAffectedPlayers *evHazard

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayersStayingInHazardEventArgs

Injected variables

VariableTypeDescription
@evAffectedPlayersplayer valueThe affected players. Note that this list is pooled. Please copy the contents if you wish to do anything with it after the event finishes.
*evHazardreference to Hazard objectThe hazard they are affected with.