Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. /*
  2. title: Loot Position Finder
  3. author: Pwnoz0r
  4. description: Find the loot positions within buildings and structures on any map.
  5. usage: Load this mission file up in the 2D editor.
  6. Once executed the output will simply copy the string to your clipboard. You may then paste that string anywhere.
  7. If you would like to change the map simply edit the mission.sqm file to included the addons of another map.
  8. version: 1.0
  9.  
  10. Example output: Land_a_stationhouse :: {3.08496,1.78516,-9.47058};
  11. modified to output to RPT by adding line 28
  12. */
  13.  
  14.  
  15. hint "Show Loot Position";
  16.  
  17. _building = nearestObject [player, "Building"];
  18. _relPos = _building worldToModel (getPosATL player);
  19. _getBuildingName = typeOf nearestBuilding position player;
  20.  
  21. _timeFactor = time;
  22. player sideChat format ["Copied to clipboard! :: %1", _timeFactor];
  23. x = _relPos select 0;
  24. y = _relPos select 1;
  25. z = _relPos select 2;
  26.  
  27. hint format ["%4 :: {%1,%2,%3};", x, y, z, _getBuildingName];
  28. diag_log text format ["[DEVTOOL] Copied BldgPos to RPT %4 :: {%1,%2,%3};",x, y, z, _getBuildingName];
  29.  
  30. copyToClipboard format ["%4 :: {%1,%2,%3};", x, y, z, _getBuildingName];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement