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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is toggling a radio. |
*evRadioItem | reference to RadioItem object | Gets the radio item. |
$evNewState | bool value | Gets the new state of the radio being turned off or on. |
$evIsAllowed | bool value | Whether the event is allowed to run. |