Skip to main content

TogglingRadio

Gets called when the player is toggling a radio.

Start a script section

!-- OnEvent TogglingRadio
-- require @evPlayer *evRadioItem $evNewState $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerTogglingRadioEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is toggling a radio.
*evRadioItemreference to RadioItem objectGets the radio item.
$evNewStatebool valueGets the new state of the radio being turned off or on.
$evIsAllowedbool valueWhether the event is allowed to run.