Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.16 KB | None | 0 0
  1. span class="re5"> Init on build box
  2.  
  3. this addAction ["Block Door (60s)",
  4. {
  5.   disableUserInput true;
  6.   for [{private _i = 0}, {_i < 60}, {_i =_i+1}] do
  7.   {
  8.     if ((_i mod 10) == 0) then
  9.     {
  10.       _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString;
  11.      _soundToPlay = _soundPath + "sounds\saw.ogg";
  12.     playSound3D [_soundToPlay,_this select 1];
  13.     };
  14.     (_this select 1) playAction "Medic";
  15.     sleep(1);
  16.   };
  17.   (_this select 1) playAction "PlayerStand";
  18.   (_this select 0) hideObject true;
  19.   floor1_frontdoor3 hideObject false;
  20.   disableUserInput false;
  21. }];
  22.  
  23. init on barricade
  24.  
  25. this hideObject true;
  26. this addAction ["Destroy Barricade (20s)",
  27. {
  28.   disableUserInput true;
  29.   for [{private _i = 0}, {_i < 20}, {_i =_i+1}] do
  30.   {
  31.     if ((_i mod 20) == 0) then
  32.     {
  33.       _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString;
  34.      _soundToPlay = _soundPath + "sounds\jackhammer.ogg";
  35.     playSound3D [_soundToPlay,_this select 1];
  36.     };
  37.     (_this select 1) playAction "Medic";
  38.     sleep(1);
  39.   };
  40.   (_this select 1) playAction "PlayerStand";
  41.   (_this select 0) hideObject true;
  42.   disableUserInput false;
  43. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement