Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _eastMarker = [];
- {
- _currMarker = toArray _x;
- if(count _currMarker >= 11) then {
- _currMarker resize 11;
- _currMarker = toString _currMarker;
- if(_currMarker == "east_marker") then{
- _eastMarker append [_x];
- };
- };
- } foreach allMapMarkers;
- FNC_createTarget =
- {
- params ["_position","_direction","_type","_side","_marker"];
- _object = ([_position,_direction,_type,_side] call bis_fnc_spawnvehicle) select 0;
- _object addEventHandler ["killed",{deleteMarker "_this select 4";}];
- _object disableAI "MOVE";
- _object //return
- };
- {
- private _position = getMarkerPos _x;
- private _direction = 0;
- private _type = "sab_boat_freighter_o";
- private _side = WEST;
- missionNamespace setVariable [format["%1", _forEachIndex], [_position, _direction, _type, _side , _x] call FNC_createTarget];
- } forEach _eastMarker;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement