Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. player addAction["Delete all in Range", {
  2. _l = position player nearObjects 500;
  3. _cl = count _l;
  4. _sl = 0;
  5. for "_sl"
  6. from 0 to _cl do {
  7. _tl = _l select _sl;
  8. if (getPlayerUID _tl == "") then {
  9. if (_cl == _sl + 1) then {
  10. _tl = "Done";
  11. };
  12. hint format[" \n - Delete - List - \n \n ----------------------------------------------- \n Units in Range: \n %1 \n ----------------------------------------------- \n Current Selected: \n %2 \n %3 \n ----------------------------------------------- \n DELETED ", _cl, _sl + 1, _tl];
  13. deleteVehicle _tl;
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement