Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _maxunits = 10;
- _maxgroup = 10;
- _currentunits = 0;
- _currentgroups = 0;
- _diameter = 1000;
- _teleportloc = getMarkerPos "startarea";
- if (!(spawnsactive))then {
- spawnsactive = true;
- while {_currentgroups < _maxgroup} do {
- _group = createGroup west;
- _randomPosition = [(_teleportloc select 0) + ((random _diameter) - (_diameter /2)), (_teleportloc select 1) + ((random _diameter) - (_diameter /2)),0];
- _currentgroups = _currentgroups + 1;
- _currentunits = 0;
- while {_currentunits < _maxunits} do {
- _unit = _group createUnit ["VBS2_US_ARMY_Rifleman_UCP_M_medium_spcs_none_M4CCO", _randomPosition, [], 5, "NONE"];
- _currentunits = _currentunits + 1;
- };
- _wp =_group addWaypoint [getMarkerPos "startarea", 300];
- _wp setWaypointType "MOVE";
- _wp =_group addWaypoint [getMarkerPos "startarea", 300];
- _wp setWaypointType "MOVE";
- _wp =_group addWaypoint [getMarkerPos "startarea", 300];
- _wp setWaypointType "CYCLE";
- };
- sleep 20;
- spawnsactive = false;
- _handle = execVM "helicopters.sqf";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement