Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.85 KB | None | 0 0
  1. _eastMarker = [];
  2. {
  3.     _currMarker = toArray _x;
  4.     if(count _currMarker >= 11) then {
  5.         _currMarker resize 11;
  6.         _currMarker = toString _currMarker;
  7.         if(_currMarker == "east_marker") then{
  8.             _eastMarker append [_x];
  9.         };
  10.     };
  11. } foreach allMapMarkers;
  12.  
  13. FNC_createTarget =
  14. {
  15. params ["_position","_direction","_type","_side","_marker"];
  16.     _object = ([_position,_direction,_type,_side] call bis_fnc_spawnvehicle) select 0;
  17.     _object addEventHandler ["killed",{deleteMarker "_this select 4";}];
  18.     _object disableAI "MOVE";
  19.     _object //return
  20. };
  21. {
  22.     private _position = getMarkerPos _x;
  23.     private _direction = 0;
  24.     private _type = "sab_boat_freighter_o";
  25.     private _side = WEST;
  26.     missionNamespace setVariable [format["%1", _forEachIndex], [_position, _direction, _type, _side , _x] call FNC_createTarget];
  27. } forEach _eastMarker;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement