mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Add files via upload
This commit is contained in:
11
SQF/dayz_code/actions/radioState.sqf
Normal file
11
SQF/dayz_code/actions/radioState.sqf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
// This function simulates turning "ItemRadio" on and off to accept or deny local messaging of type "radio".
|
||||||
|
|
||||||
|
if(player getVariable["radiostate",true]) then {
|
||||||
|
localize "str_actions_radio_off" call dayz_rollingMessages;
|
||||||
|
player setVariable["radiostate",false];
|
||||||
|
playSound "Switch_On_Off";
|
||||||
|
} else {
|
||||||
|
localize "str_actions_radio_on" call dayz_rollingMessages;
|
||||||
|
player setVariable["radiostate",true];
|
||||||
|
playSound "Switch_On_Off";
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user