Advertisement
Guest User

Untitled

a guest
Feb 1st, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. hrn_disabledUnits = [];
  3.  
  4. while {true} do
  5. {
  6. {
  7. if (player distance _x < 2000) then
  8. {
  9. _x enableSimulation true;
  10. hrn_disabledUnits = hrn_disabledUnits - [_x];
  11. };
  12. } forEach hrn_disabledUnits;
  13. {
  14. if (player distance _x >= 2000 && (!(_x in hrn_disabledUnits))) then
  15. {
  16. hrn_disabledUnits = hrn_disabledUnits + [_x];
  17. };
  18. } forEach allUnits;
  19. {
  20. _x switchMove "";
  21. _x enableSimulation false;
  22. } forEach hrn_disabledUnits;
  23. sleep 3;
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement