Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> Init on build box
- this addAction ["Block Door (60s)",
- {
- disableUserInput true;
- for [{private _i = 0}, {_i < 60}, {_i =_i+1}] do
- {
- if ((_i mod 10) == 0) then
- {
- _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString;
- _soundToPlay = _soundPath + "sounds\saw.ogg";
- playSound3D [_soundToPlay,_this select 1];
- };
- (_this select 1) playAction "Medic";
- sleep(1);
- };
- (_this select 1) playAction "PlayerStand";
- (_this select 0) hideObject true;
- floor1_frontdoor3 hideObject false;
- disableUserInput false;
- }];
- init on barricade
- this hideObject true;
- this addAction ["Destroy Barricade (20s)",
- {
- disableUserInput true;
- for [{private _i = 0}, {_i < 20}, {_i =_i+1}] do
- {
- if ((_i mod 20) == 0) then
- {
- _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString;
- _soundToPlay = _soundPath + "sounds\jackhammer.ogg";
- playSound3D [_soundToPlay,_this select 1];
- };
- (_this select 1) playAction "Medic";
- sleep(1);
- };
- (_this select 1) playAction "PlayerStand";
- (_this select 0) hideObject true;
- disableUserInput false;
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement