Advertisement
bejiitas_wrath

Create HQ.

Aug 18th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. _randPos = getmarkerPos "aoMarker";
  2.  
  3. _cargo = "Land_Cargo_Tower_V2_F" createVehicle _randPos;
  4.  
  5. _cargo enablesimulation false;
  6. _cargo allowdamage false;
  7.  
  8. _building = _cargo;
  9. _allpositions = _building buildingPos -1;
  10. _posCount = count _allpositions;
  11.  
  12. if(_posCount <=0) exitWith {};
  13.  
  14. _newgroup = createGroup [east,true];
  15. _ind = 0;
  16.  
  17. for "_i" from 1 to _posCount do {
  18.  
  19.     _soldiertype = selectRandom ["rhsgref_ins_specialist_aa","rhsgref_ins_grenadier_rpg","rhsgref_ins_machinegunner","rhsgref_ins_medic","rhsgref_ins_militiaman_mosin","rhsgref_ins_rifleman","rhsgref_ins_grenadier","rhsgref_ins_rifleman_RPG26"];
  20.     _safeInner = _allpositions select _ind;
  21.  
  22.     _ind = _ind + 1;
  23.  
  24.     _tempSoldier1 = _newgroup createUnit [_soldiertype,_safeInner,[],0,"FORM"];
  25.     _tempSoldier1 disableai "PATH";
  26.  
  27.     uiSleep 1.0;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement