;-- example radio script to be added in "custom data"
;user can turn radio off or on

[logic]
active = ph_radio@radio_on

[ph_radio@radio_off]
snd = music
status = off
on_use = radio_on

[ph_radio@radio_on]
snd = music
status = on
random = true
no_hit = true
min_idle = 500
max_idle = 2000
on_use = radio_off

;tutorial for ph_radio.script

;snd - sound theme, it's in sound themes script which has all themes described and pre-set
;looped - whether radio should be looped or not (true/false)
;random - whether randomly select sounds from sound theme (snd) - true/false
;min_idle, max_idle - in miliseconds, idle time (no sound) between playing another
;no_hit - this is for hit, if you want to disable (permanently) radio when it receive hit callback
;so you shoot and it's destroyed and won't play music again - true/false 