Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.55 KB | None | 0 0
  1. if (!hasInterface) exitWith {};
  2.  
  3. _this setVariable ["siren",false];
  4. _this addAction ["Turn On Siren",{(_this select 0) setVariable ["siren",true,true]},nil,0,false,false,"","!(_target getVariable 'siren') && _this == driver _target"];
  5. _this addAction ["Turn Off Siren",{(_this select 0) setVariable ["siren",false,true]},nil,0,false,false,"","(_target getVariable 'siren') && _this == driver _target"];
  6.  
  7. while {true} do {
  8.     if (_this getVariable "siren") then {
  9.         _this say3d "AlarmCar";
  10.         sleep 2;
  11.     } else {
  12.         sleep 1;
  13.     };
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement