Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- filename: @fn_spawnExplosive.sqf
- Author: J. Schmidt
- Coded for SOG Missions and Campaigns
- */
- params ["_time", ["_explosives", []]];
- while {(_time > 0) && { alive _x } count _explosives > 0} do {
- _time = _time - 1;
- sleep 1;
- hintSilent parseText format ["<t size='1' color='#ffffff' shadow='2'>Time Left: </t><t size='1.125' color='#ff0000' shadow='2'>%1</t>", _time];
- if ({ alive _x } count _explosives <= 0) exitWith {};
- {
- if (alive _x) then {
- _x say3D "jas92_timerClick";
- };
- } forEach _explosives;
- if (_time <= 0 && { alive _x } count _explosives > 0) exitWith {
- { _x setDamage 1; } forEach _explosives;
- };
- };
- hint "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement