EnteringHazard
Gets called when player is entering any environmental hazard.
Start a script section
!-- OnEvent EnteringHazard
-- require @evPlayer *evHazard $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerEnteringHazardEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | The player which is entering the hazard. |
*evHazard | reference to Hazard object | The target hazard. |
$evIsAllowed | bool value | Gets or sets whether the event is allowed. Not allowing this event will cause the player to not be affected by the hazard. |