Skip to main content

Escaped

Gets called when the player has escaped.

Start a script sectionโ€‹

!-- OnEvent Escaped
-- require @evPlayer $evOldRole $evNewRole $evEscapeScenarioType *evEscapeZone

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

Injected variablesโ€‹

VariableTypeDescription
@evPlayerplayer valueGets the player who escaped.
$evOldRoleRoleTypeId enum valueGets the old role of the player.
$evNewRoleRoleTypeId enum valueGets the new role.
$evEscapeScenarioTypeEscapeScenarioType enum valueEscape scenario of the player.
*evEscapeZonereference to Bounds objectThe bounds of the escape zone that was triggered.

Validated examples using this eventโ€‹