ChangedSpectator
Gets called when the player has changed the spectated player.
Start a script section
!-- OnEvent ChangedSpectator
-- require @evPlayer @evOldTarget @evNewTarget
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerChangedSpectatorEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who changed spectator. |
@evOldTarget | player value | Gets old target that was spectated previously. |
@evNewTarget | player value | Gets the new target that was spectating changed to. |