Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who changed spectator.
@evOldTargetplayer valueGets old target that was spectated previously.
@evNewTargetplayer valueGets the new target that was spectating changed to.