Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. if (b_rand1 == 0 || b_rand1 == 1 || b_rand1 == 2 || b_rand1 == 3) then{
  2. switch (true) do {
  3. case (b_rand1 == 0): {haltedgroups = [r_halt5,r_halt6,r_halt7,r_halt8]};
  4. case (b_rand1 == 1): {haltedgroups = [r_halt5,r_halt6,r_halt7,r_halt8]};
  5. case (b_rand1 == 2): {haltedgroups = [r_halt9,r_halt10,r_halt11,r_halt12]};
  6. case (b_rand1 == 3): {haltedgroups = [r_halt13,r_halt14,r_halt15,r_halt16]};
  7. };
  8.  
  9. {{_x setVehicleInit "_x action ["sitdown", _x];"; processInitCommands;} foreach units (group _x);} foreach haltedgroups;
  10. };
  11.  
  12. while {!b_reinforceRED && !b_contactRED} do
  13. {
  14. _units = [];
  15. {
  16. if (([getPos _x, "aom"] call CBA_fnc_inArea) && (side _x == WEST) && (EAST knowsAbout _x > 0)) then
  17. {
  18. _units = _units + [_x];
  19. };
  20. } forEach allUnits;
  21.  
  22. if (count _units > 2) then
  23. {
  24. b_contactRED = true;
  25.  
  26. if (b_rand1 == 0 || b_rand1 == 1 || b_rand1 == 2 || b_rand1 == 3) then
  27. {
  28. {{_x setVehicleInit "_x doFollow (leader (group _x));"; processInitCommands;"} foreach units (group _x);} foreach haltedgroups;
  29. };
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement