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
| Variable | Type | Description |
|---|---|---|
@evAffectedPlayers | player value | The affected players. Note that this list is pooled. Please copy the contents if you wish to do anything with it after the event finishes. |
*evHazard | reference to Hazard object | The hazard they are affected with. |