[logic]
active = ph_button@radio_on

[ph_button@radio_on]
play_cycl = false
on_info = {=dist_to_actor_le(25)} ph_button@stop %=play_sound( radio_svoboda )%

[ph_button@stop]
play_cycl = false
on_press = ph_button@radio_off %=stop_sound%
tooltip = tip_need_switch_off
on_info  = {=dist_to_actor_ge(25)} ph_button@radio_on %=stop_sound%
on_info2 = {!is_playing_sound()}   ph_button@radio_on

[ph_button@radio_off]
play_cycl = false
on_press = ph_button@stop %=play_sound( radio_svoboda )%
tooltip = tip_need_switch_on
