EscapedCompleted
Gets called when the player escape objective has been completed.
Start a script section
!-- OnEvent EscapedCompleted
-- require $evOldRole $evNewRole @evPlayer $evFaction $evInfluenceToGrant $evTimeToGrant $evSendToPlayers
# Add your instructions here
- Group: ObjectiveEvents
- Cancellable: No
- Event data:
EscapedObjectiveEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
$evOldRole | RoleTypeId enum value | Gets the old role of the player. |
$evNewRole | RoleTypeId enum value | Gets the new role the player is getting. |
@evPlayer | player value | Gets the player that invoked the event. |
$evFaction | Faction enum value | Gets the Faction which will receive the InfluenceToGrant and TimeToGrant rewards. |
$evInfluenceToGrant | number value | Gets the amount of influence to grant to the Faction. |
$evTimeToGrant | number value | Gets the amount of time to be reduced from the Faction's timer. Remarks: Negative values reduce the timer, positive extends it. |
$evSendToPlayers | bool value | Gets whether the objective completion should be sent to players and visible on their screen. |