Advertisement
BlackFisch

Untitled

Aug 28th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. call getFuelpumps;
  2. getFuelpumps =
  3. {
  4. _pos = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition");
  5. _Station = nearestobjects [_pos,["Land_fs_feed_F","Land_FuelStation_Feed_F","Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"], 25000];
  6. _br = toString [13, 10];
  7. _tab = toString [9];
  8.  
  9. _TexteSortie = "private _stationPositions = [" + _br;
  10.  
  11. {
  12. _Array = getpos _x;
  13. _TexteSortie = _TexteSortie + _tab + (str _Array);
  14. _TexteSortie = if (_forEachIndex < ((count _Station) - 1)) then {_TexteSortie + ", " + _br} else {_TexteSortie + _br};
  15. } forEach _Station;
  16. _TexteSortie = _TexteSortie + "];";
  17. hint "Completed";
  18. copyToClipboard _TexteSortie;
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement