Escaping
Gets called when the player is escaping.
Start a script section
!-- OnEvent Escaping
-- require @evPlayer $evOldRole $evNewRole $evEscapeScenario *evEscapeZone $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerEscapingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is escaping. |
$evOldRole | RoleTypeId enum value | Gets the old role of the player. |
$evNewRole | RoleTypeId enum value | Gets or sets the new role that is set after escape. |
$evEscapeScenario | EscapeScenarioType enum value | Gets or sets the escape scenario. |
*evEscapeZone | reference to Bounds object | The bounds of the escape zone that was triggered. |
$evIsAllowed | bool value | Whether the event is allowed to run. |