Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. _maxunits = 10;
  2. _maxgroup = 10;
  3. _currentunits = 0;
  4. _currentgroups = 0;
  5. _diameter = 1000;
  6. _teleportloc = getMarkerPos "startarea";
  7.  
  8.  
  9. if (!(spawnsactive))then {
  10. spawnsactive = true;
  11. while {_currentgroups < _maxgroup} do {
  12. _group = createGroup west;
  13. _randomPosition = [(_teleportloc select 0) + ((random _diameter) - (_diameter /2)), (_teleportloc select 1) + ((random _diameter) - (_diameter /2)),0];
  14. _currentgroups = _currentgroups + 1;
  15. _currentunits = 0;
  16.  
  17. while {_currentunits < _maxunits} do {
  18. _unit = _group createUnit ["VBS2_US_ARMY_Rifleman_UCP_M_medium_spcs_none_M4CCO", _randomPosition, [], 5, "NONE"];
  19. _currentunits = _currentunits + 1;
  20. };
  21. _wp =_group addWaypoint [getMarkerPos "startarea", 300];
  22. _wp setWaypointType "MOVE";
  23. _wp =_group addWaypoint [getMarkerPos "startarea", 300];
  24. _wp setWaypointType "MOVE";
  25. _wp =_group addWaypoint [getMarkerPos "startarea", 300];
  26. _wp setWaypointType "CYCLE";
  27. };
  28. sleep 20;
  29. spawnsactive = false;
  30. _handle = execVM "helicopters.sqf";
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement