UsingRadio
Gets called when the player is using the radio.
Start a script section
!-- OnEvent UsingRadio
-- require @evPlayer *evRadioItem $evDrain $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerUsingRadioEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is using the radio. |
*evRadioItem | reference to RadioItem object | Gets the radio that is being used. |
$evDrain | number value | Gets the battery drain amount per second. |
$evIsAllowed | bool value | Whether the event is allowed to run. |