Guest User

Untitled

a guest
Jan 19th, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. while {_scripttime > 0} do {
  2. _perc = round(random 100);
  3. _scripttime = _scripttime - 1;
  4. _temptime = _spawntime;
  5. //player sidechat format ["percentage: %1", _perc];
  6. waitUntil {(count allUnits) < 200};
  7. if (_perc <= _PInf) then {
  8. _infspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxInf] spawn DZ_Spawn_INF;
  9. };
  10. _perc = round(random 100);
  11. if (_perc <= _PV) then {
  12. _vehspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxV] spawn DZ_SPAWN_V;
  13. };
  14.  
  15. // check if an index in the array exists
  16. if (count (_unit getVariable "lightarmor") > 0) then {
  17. _perc = round(random 100);
  18. //player sidechat format ["percentage: %1", _perc];
  19. if (_perc <= _PLA) then {
  20. _laspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxLA] spawn DZ_Spawn_LA;
  21. };
  22. };
  23. _perc = round(random 100);
  24. //player sidechat format ["percentage: %1", _perc];
  25. if (_perc <= _PArm) then {
  26. _armspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxArm] spawn DZ_Spawn_ARM;
  27. };
  28. sleep 1;
  29.  
  30. // check if an index in the array exists
  31. if (count (_unit getVariable "air") > 0) then {
  32. _perc = round(random 100);
  33. //player sidechat format ["percentage: %1", _perc];
  34. if (_perc <= _PAir) then {
  35. _airspawn = [_unit, _logicS, _logicE, _side, _faction, _MaxAir] spawn DZ_Spawn_AIR;
  36. };
  37. };
  38. waitUntil {sleep 1; _temptime = _temptime - 1; _temptime < 1};
  39. {if (({alive _x} count units _x) == 0) then {deleteGroup _x}} foreach allGroups;
  40. {deleteVehicle _x} forEach allDead;
  41. };
  42. };
Advertisement
Add Comment
Please, Sign In to add comment