Advertisement
Traggered

initServer.sqf: create power lines

Sep 13th, 2024 (edited)
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.70 KB | Gaming | 0 0
  1. private _allLines = [];
  2. {
  3.     _allLines append (_x call BIS_Orange_fnc_createPowerline);
  4. }
  5. forEach
  6. [
  7.     //[     START               END      ],
  8.     [EfN_powerLine_01s, EfN_powerLine_01e],
  9.     [EfN_powerLine_02s, EfN_powerLine_02e],
  10.     [EfN_powerLine_03s, EfN_powerLine_03e],
  11.     [EfN_powerLine_04s, EfN_powerLine_04e],
  12.     [EfN_powerLine_05s, EfN_powerLine_05e],
  13.     [EfN_powerLine_06s, EfN_powerLine_06e],
  14.     [EfN_powerLine_07s, EfN_powerLine_07e],
  15.     [EfN_powerLine_08s, EfN_powerLine_08e]
  16. ];
  17. {_x allowDamage false} forEach _allLines;
  18.  
  19. if ((productVersion # 2) >= 217) then
  20. {
  21.     deleteVehicle (getMissionLayerEntities "EfL_PowerLines" # 0)
  22. }
  23. else
  24. {
  25.     {
  26.         deleteVehicle _x
  27.     }
  28.     forEach (getMissionLayerEntities "EfL_PowerLines" # 0)
  29. };
Tags: Arma3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement