Guest User

Untitled

a guest
Jun 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. RPP_fnc_grabRTEObjects = {
  2. _ExportObjects = [];
  3. _ObjectID = 0;
  4. _ObjectIDs = [];
  5.  
  6. {
  7. _model = typeOf _x;
  8. _pos = [_x, _OldPos] call ION_RTE_fGetPos;
  9. _dir = _x call ION_RTE_fGetDir;
  10. _special = [_x, "ION_RTE_UNIT_SPECIAL"] call ION_RTE_fGetVariable;
  11. _lock = switch (locked _x) do {
  12. case true: { "LOCKED" };
  13. default { "UNLOCKED" };
  14. };
  15. _health = 1 - (damage _x);
  16. _fuel = fuel _x;
  17. _ammo = [_x, "ION_RTE_UNIT_AMMO"] call ION_RTE_fGetVariable;
  18. _init = [_x, "ION_RTE_UNIT_INIT"] call ION_RTE_fGetVariable;
  19. _init = (format["this setVectorUp %1;", vectorUp _x]) + _init;
  20. _name = [_x, "ION_RTE_UNIT_NAME"] call ION_RTE_fGetVariable;
  21. _ExportObjects = _ExportObjects + [[_ObjectID, [_model, _pos, _dir, _special, _lock, _health, _fuel, _ammo, _init, _name]]];
  22. _ObjectIDs set [_ObjectID, _x];
  23. _ObjectID = _ObjectID + 2;
  24. } forEach ION_RTE_Units;
  25.  
  26. _finalArray = [ [], [], [], _ExportObjects, [], [], false, true, []];
  27. copyToClipboard ((str _finalArray) + "call ION_RTE_fRestore;");
  28. };
Add Comment
Please, Sign In to add comment