Scp1509Resurrecting
Gets called when a player is about to be resurrected with the Scp1509 item.
Start a script section
!-- OnEvent Scp1509Resurrecting
-- require @evPlayer *evItem @evKilledPlayer @evRevivedPlayer $evRespawnRole $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerScp1509ResurrectingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player that invoked the event. |
*evItem | reference to Scp1509Item object | Gets the SCP-1509 item that is being used. |
@evKilledPlayer | player value | Gets the player who is about to be killed. |
@evRevivedPlayer | player value | Gets or sets the player to revive as RespawnRole. |
$evRespawnRole | RoleTypeId enum value | Gets or sets the role to respawn the RevivedPlayer to. |
$evIsAllowed | bool value | Whether the event is allowed to run. |