Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while {_scripttime > 0} do {
- _perc = round(random 100);
- _scripttime = _scripttime - 1;
- _temptime = _spawntime;
- //player sidechat format ["percentage: %1", _perc];
- waitUntil {(count allUnits) < 200};
- if (_perc <= _PInf) then {
- _infspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxInf] spawn DZ_Spawn_INF;
- };
- _perc = round(random 100);
- if (_perc <= _PV) then {
- _vehspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxV] spawn DZ_SPAWN_V;
- };
- // check if an index in the array exists
- if (count (_unit getVariable "lightarmor") > 0) then {
- _perc = round(random 100);
- //player sidechat format ["percentage: %1", _perc];
- if (_perc <= _PLA) then {
- _laspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxLA] spawn DZ_Spawn_LA;
- };
- };
- _perc = round(random 100);
- //player sidechat format ["percentage: %1", _perc];
- if (_perc <= _PArm) then {
- _armspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxArm] spawn DZ_Spawn_ARM;
- };
- sleep 1;
- // check if an index in the array exists
- if (count (_unit getVariable "air") > 0) then {
- _perc = round(random 100);
- //player sidechat format ["percentage: %1", _perc];
- if (_perc <= _PAir) then {
- _airspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxAir] spawn DZ_Spawn_AIR;
- };
- };
- waitUntil {sleep 1; _temptime = _temptime - 1; _temptime < 1};
- {if (({alive _x} count units _x) == 0) then {deleteGroup _x}} foreach allGroups;
- {deleteVehicle _x} forEach allDead;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment