Danidan 17 Posted July 7, 2018 Hello Community, I need help. I would like to make a simple script to move and land a helicopter by clicking on the map. I added the functions to the ACE 3 menu of my mission. I create a helico a1 and a helipad h1. Here is the script that works but I do not succeed when I restart the script to reuse the function. (It works only once.) _marker = createMarker ["Mark2",[0,0,0]]; _marker setMarkerColor "ColorRed"; _marker setMarkerType "mil_dot"; _marker setMarkerShape "ICON"; _marker setMarkerSize [1,1]; _marker setMarkerText "FlightLeader"; openMap [true, false]; titleText ["Press on map to set destination.", "PLAIN"]; onMapSingleClick { _m = createMarker ['destination_lz',_pos]; _m setMarkerType 'mil_pickup'; _m setMarkerColor 'ColorBlue'; _wp = (group a1) addWaypoint [_pos,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "_veh land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; [] spawn { sleep 5; }; }; [] spawn { while {not isnull a1} do { "Mark2" setmarkerpos getpos a1; sleep 0.5; }; }; I would ideally erase the mark when the helicopter approaches and can recreate it to infinity to move it. I would also like the helicopter to stay on the ground until I order it to move. (I need use this in Multiplayer game.) An idea? Thank you very much in advance for the help! 1 Share this post Link to post Share on other sites
Danidan 17 Posted July 8, 2018 Hello, I have find and this work: _marker = createMarkerlocal ["Mark2",[0,0,0]]; _marker setMarkerColorlocal "ColorRed"; _marker setMarkerTypelocal "mil_dot"; _marker setMarkerShapelocal "ICON"; _marker setMarkerSizelocal [1,1]; _marker setMarkerTextlocal "FlightLeaderA1"; openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a1)) > 0} do { deleteWaypoint ((waypoints group a1) select 0); deleteMarker "destination_lz"; }; _m = createMarker ['destination_lz',_pos]; _m setMarkerType 'mil_pickup'; _m setMarkerColor 'ColorBlue'; _wp = (group a1) addWaypoint [_pos,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; }; [] spawn { while {not isnull a1} do { "Mark2" setmarkerpos getpos a1; sleep 0.5; }; }; I have a new problem. Now when i click on the map the Dz move Always when i start one time the script. Share this post Link to post Share on other sites
Danidan 17 Posted July 10, 2018 Hello, Noobas question… I have Quote helia1 = [ if (side player == blufor) then { _marker = createMarkerlocal ["Mark2",[0,0,0]]; _marker setMarkerColorlocal "ColorRed"; _marker setMarkerTypelocal "mil_dot"; _marker setMarkerShapelocal "ICON"; _marker setMarkerSizelocal [1,1]; _marker setMarkerTextlocal "FlightLeaderA1"; openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a1)) > 0} do { deleteWaypoint ((waypoints group a1) select 0); deleteMarker "destination_lz"; }; _m = createMarker ['destination_lz',_pos]; _m setMarkerType 'mil_pickup'; _m setMarkerColor 'ColorBlue'; _wp = (group a1) addWaypoint [_pos,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; }; [] spawn { while {not isnull a1} do { "Mark2" setmarkerpos getpos a1; sleep 0.5; }; }; }; ]; I want to call only helia1 and not sqf…. How i can do? myaction3 = [['heli 3','DZ','', {execVM 'omtk\heli_support\heli.sqf';}, {true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2"], myaction3] call ace_interact_menu_fnc_addActionToObject; Thank's! Share this post Link to post Share on other sites
Danidan 17 Posted July 14, 2018 Yop. I have terminate but i have a last problem. I have make script for 8 helico (4red/4blue) and i have a marker on each helico with this script: [] spawn { while {not isnull ar2} do { "Markr2" setmarkerpos getpos ar2; sleep 0.5; if (!alive ar2) exitWith {deletemarkerlocal "markr2"}; }; }; But if i Don't create helico ar4 i have a message error undefined variable! That is normal but how i can repare that? Share this post Link to post Share on other sites
Danidan 17 Posted July 15, 2018 _condition5 = { (alive ar1) && {[_player, _target, []] call ace_common_fnc_canInteractWith} }; _statementr = { [true] call pabst_fnc_radioFinder_action; }; myactionr2 = ['helir 2','Heli support A1','',_statementr,_condition5] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1"], myactionr2] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','DZ','',{call helibr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','BTB','',{call helibbtbr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','MOVE','',{call helibmover1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; I don't understand. I wan't not add action Heli support A1 if i don't put ar1 (helico on the map). Share this post Link to post Share on other sites
Danidan 17 Posted July 16, 2018 _condition5 = { (isnil ar1) && (alive ar1) && {[_player, _target, []] call ace_common_fnc_canInteractWith} This not work? 1 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted July 17, 2018 Hello there Danidan ! If i had time i would help ! at least congratulations that you try and post also your progress, i'm just "bumping" the post for someone to help you ! So else keep up ! If i find some time i 'll to check ! Share this post Link to post Share on other sites
Danidan 17 Posted August 20, 2018 Hello. I have worked hard with more more more trye… I must teste in game now. I have make this but i Don't script this good. I think's this can be compact and assembly in one script for each helico. (But i Don't make this). Module ACE: main.sqf Spoiler // charge les modules execVM "omtk\heli_support\spawn.sqf"; execVM 'omtk\heli_support\heli.sqf'; execVM "omtk\heli_support\BTB.sqf"; execVM "omtk\heli_support\move.sqf"; execVM "omtk\heli_support\ALT.sqf"; //Classe avec action OMTK_WU_CHIEF_CLASSES_B = ["B_officer_F", "B_Soldier_SL_F"]; // CAN BE CUSTOMIZED OMTK_WU_CHIEF_CLASSES_R = [ "O_officer_F", "O_Soldier_SL_F"]; if (hasInterface) then { _class = typeOf player; if (_class in OMTK_WU_CHIEF_CLASSES_B) then { myaction = ['heli 1','Heli support',"omtk\heli_support\img\uh-60.paa",{hint 'Select your Hélico';},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions"], myaction] call ace_interact_menu_fnc_addActionToObject; _myObjectInstance = missionNamespace getVariable ["a1", objNull]; if (!(isNull _myObjectInstance)) then { myaction2 = ['heli 2','Heli support A1','',{call helibsp1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1"], myaction2] call ace_interact_menu_fnc_addActionToObject; }; myaction3 = ['heli 3','DZ','',{call helib1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','BTB','',{call helibbtb1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 31','MOVE','',{call helibmove1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','ALT50M','',{call helib50M1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2","heli 31"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','ALT100M','',{call helib100M1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2","heli 31"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','ALT200M','',{call helib200M1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2","heli 31"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','ALT400M','',{call helib400M1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2","heli 31"], myaction3] call ace_interact_menu_fnc_addActionToObject; myaction3 = ['heli 3','ALT600M','',{call helib600M1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 2","heli 31"], myaction3] call ace_interact_menu_fnc_addActionToObject; /// blue heli2 _myObjectInstancea2 = missionNamespace getVariable ["a2", objNull]; if (!(isNull _myObjectInstancea2)) then { myaction4 = ['heli 4','Heli support A2','',{call helibsp2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1"], myaction4] call ace_interact_menu_fnc_addActionToObject; }; myaction4 = ['heli 4','DZ','',{call helib2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','BTB','',{call helibbtb2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 41','MOVE','',{call helibmove2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','ALT50M','',{call helib50M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 41"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','ALT100M','',{call helib100M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 41"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','ALT200M','',{call helib200M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 41"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','ALT400M','',{call helib400M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 41"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction4 = ['heli 4','ALT600M','',{call helib600M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 41"], myaction4] call ace_interact_menu_fnc_addActionToObject; /// blue heli3 _myObjectInstancea3 = missionNamespace getVariable ["a3", objNull]; if (!(isNull _myObjectInstancea3)) then { myaction5 = ['heli 5','Heli support A3','',{call helibsp3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1"], myaction5] call ace_interact_menu_fnc_addActionToObject; }; myaction5 = ['heli 5','DZ','',{call helib3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 5"], myaction5] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 5','BTB','',{call helibbtb3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 5"], myaction5] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 51','MOVE','',{call helibmove3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 5"], myaction5] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 4','ALT50M','',{call helib50M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 51"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 4','ALT100M','',{call helib100M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 51"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 4','ALT200M','',{call helib200M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 51"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 4','ALT400M','',{call helib400M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 51"], myaction4] call ace_interact_menu_fnc_addActionToObject; myaction5 = ['heli 4','ALT600M','',{call helib600M2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 4","heli 51"], myaction4] call ace_interact_menu_fnc_addActionToObject; /// blue heli4 _myObjectInstancea4 = missionNamespace getVariable ["a4", objNull]; if (!(isNull _myObjectInstancea4)) then { myaction6 = ['heli 6','Heli support A4','',{call helibsp4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1"], myaction6] call ace_interact_menu_fnc_addActionToObject; }; myaction6 = ['heli 6','DZ','',{call helib4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','BTB','',{call helibbtb4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 61','MOVE','',{call helibmove4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','ALT50M','',{call helib50M4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6","heli 61"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','ALT100M','',{call helib100M4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6","heli 61"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','ALT200M','',{call helib200M4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6","heli 61"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','ALT400M','',{call helib400M4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6","heli 61"], myaction6] call ace_interact_menu_fnc_addActionToObject; myaction6 = ['heli 6','ALT600M','',{call helib600M4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "heli 1","heli 6","heli 61"], myaction6] call ace_interact_menu_fnc_addActionToObject; }; if (_class in OMTK_WU_CHIEF_CLASSES_R) then { myactionr = ['helir 1','Heli support',"omtk\heli_support\img\uh-60.paa",{hint 'Select your Hélico';},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions"], myactionr] call ace_interact_menu_fnc_addActionToObject; /// red heli1 _myObjectInstancear1 = missionNamespace getVariable ["ar1", objNull]; if (!(isNull _myObjectInstancear1)) then { myactionr2 = ['helir 2','Heli support A1','',{call helibspr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1"], myactionr2] call ace_interact_menu_fnc_addActionToObject; }; myactionr3 = ['helir 3','DZ','',{call helibr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','BTB','',{call helibbtbr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 31','MOVE','',{call helibmover1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2"], myactionr3] call ace_interact_menu_fnc_addActionToObject; //myactionr3 = ['helir 3','ALT15M','',{call helib15Mr1;},{true}] call ace_interact_menu_fnc_createAction; //[player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','ALT50M','',{call helib50Mr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','ALT100M','',{call helib100Mr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','ALT200M','',{call helib200Mr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','ALT400M','',{call helib400Mr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; myactionr3 = ['helir 3','ALT600M','',{call helib600Mr1;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 2","helir 31"], myactionr3] call ace_interact_menu_fnc_addActionToObject; /// red heli2 _myObjectInstancear2 = missionNamespace getVariable ["ar2", objNull]; if (!(isNull _myObjectInstancear2)) then { myactionr4 = ['helir 4','Helir support A2','',{call helibspr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1"], myactionr4] call ace_interact_menu_fnc_addActionToObject; }; myactionr4 = ['helir 4','DZ','',{call helibr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 4','BTB','',{call helibbtbr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 41','MOVE','',{call helibmover2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 3','ALT50M','',{call helib50Mr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4","helir 41"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 3','ALT100M','',{call helib100Mr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4","helir 41"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 3','ALT200M','',{call helib200Mr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4","helir 41"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 3','ALT400M','',{call helib400Mr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4","helir 41"], myactionr4] call ace_interact_menu_fnc_addActionToObject; myactionr4 = ['helir 3','ALT600M','',{call helib600Mr2;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 4","helir 41"], myactionr4] call ace_interact_menu_fnc_addActionToObject; /// red heli3 _myObjectInstancear3 = missionNamespace getVariable ["ar3", objNull]; if (!(isNull _myObjectInstancear3)) then { myactionr5 = ['helir 5','Helir support A3','',{call helibspr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1"], myactionr5] call ace_interact_menu_fnc_addActionToObject; }; myactionr5 = ['helir 5','DZ','',{call helibr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','BTB','',{call helibbtbr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 51','MOVE','',{call helibmover3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','ALT50M','',{call helib50Mr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5","helir 51"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','ALT100M','',{call helib100Mr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5","helir 51"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','ALT200M','',{call helib200Mr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5","helir 51"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','ALT400M','',{call helib400Mr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5","helir 51"], myactionr5] call ace_interact_menu_fnc_addActionToObject; myactionr5 = ['helir 5','ALT600M','',{call helib600Mr3;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 5","helir 51"], myactionr5] call ace_interact_menu_fnc_addActionToObject; /// red heli4 _myObjectInstancear4 = missionNamespace getVariable ["ar4", objNull]; if (!(isNull _myObjectInstancear4)) then { myactionr6 = ['helir 6','Heli support A4','',{call helibspr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1"], myactionr6] call ace_interact_menu_fnc_addActionToObject; }; myactionr6 = ['helir 6','DZ','',{call helibr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 6','BTB','',{call helibbtbr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 61','MOVE','',{call helibmover4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 3','ALT50M','',{call helib50Mr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6","helir 61"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 3','ALT100M','',{call helib100Mr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6","helir 61"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 3','ALT200M','',{call helib200Mr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6","helir 61"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 3','ALT400M','',{call helib400Mr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6","helir 61"], myactionr6] call ace_interact_menu_fnc_addActionToObject; myactionr6 = ['helir 3','ALT600M','',{call helib600Mr4;},{true}] call ace_interact_menu_fnc_createAction; [player, 1, ["ACE_SelfActions", "helir 1","helir 6","helir 61"], myactionr6] call ace_interact_menu_fnc_addActionToObject; }; }; heli.sqf (Dz) Spoiler helib1 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == west) then { while {(count (waypoints group a1)) > 0} do { deleteMarkerlocal "destination_lz"; deleteWaypoint ((waypoints a1) select 0); }; _m = createMarkerlocal ['destination_lz',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; }; _wp = (group a1) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "a1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; 0 = [] spawn{ a1 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; a1 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; a1 vehicleChat "We are approaching! Good luck to you.";}; }; }; /// helico 2 helib2 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == west) then { while {(count (waypoints group a2)) > 0} do { deleteMarkerlocal "destination_lz2"; deleteWaypoint ((waypoints a2) select 0); }; _m = createMarkerlocal ['destination_lz2',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; }; _wp = (group a2) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "a2 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; //hint format ["QG: Communication civile rapportant des hommes armées au %1", _wp]; 0 = [] spawn{ a2 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; a2 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; a2 vehicleChat "We are approaching! Good luck to you.";}; }; }; /// helico3 helib3 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == west) then { while {(count (waypoints group a3)) > 0} do { deleteMarkerlocal "destination_lz3"; deleteWaypoint ((waypoints a3) select 0); }; _m = createMarkerlocal ['destination_lz3',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; }; _wp = (group a3) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "a3 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; 0 = [] spawn{ a3 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; a3 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; a3 vehicleChat "We are approaching! Good luck to you.";}; }; }; ///helico4 helib4 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == west) then { while {(count (waypoints group a4)) > 0} do { deleteMarkerlocal "destination_lz4"; deleteWaypoint ((waypoints a4) select 0); }; _m = createMarkerlocal ['destination_lz4',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; }; _wp = (group a4) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "a4 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; //hint format ["QG: Communication civile rapportant des hommes armées au %1", _wp]; 0 = [] spawn{ a4 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; a4 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; a4 vehicleChat "We are approaching! Good luck to you.";}; }; }; /////////////// heli rouge helibr1 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == east) then { while {(count (waypoints group ar1)) > 0} do { deleteMarkerlocal "destination_lzr"; deleteWaypoint ((waypoints ar1) select 0); }; _m = createMarkerlocal ['destination_lzr',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; }; _wp = (group ar1) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "ar1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; 0 = [] spawn{ ar1 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; ar1 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; ar1 vehicleChat "We are approaching! Good luck to you.";}; }; }; /// helico 2 helibr2 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == east) then { while {(count (waypoints group ar2)) > 0} do { deleteMarkerlocal "destination_lzr2"; deleteWaypoint ((waypoints ar2) select 0); }; _m = createMarkerlocal ['destination_lzr2',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; _wp = (group ar2) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "ar2 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; }; onMapSingleClick ''; true; //hint format ["QG: Communication civile rapportant des hommes armées au %1", _wp]; 0 = [] spawn{ ar2 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; ar2 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; ar2 vehicleChat "We are approaching! Good luck to you.";}; }; }; /// helico3 helibr3 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == east) then { while {(count (waypoints group ar3)) > 0} do { deleteMarkerlocal "destination_lzr3"; deleteWaypoint ((waypoints ar3) select 0); }; _m = createMarkerlocal ['destination_lzr3',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; }; _wp = (group ar3) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "ar3 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; 0 = [] spawn{ ar3 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; ar3 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; ar3 vehicleChat "We are approaching! Good luck to you.";}; }; }; ///helico4 helibr4 = { openMap [true, false]; titleText ["Press on map to DZ destination.", "PLAIN"]; onMapSingleClick { if (playerSide == east) then { while {(count (waypoints group ar4)) > 0} do { deleteMarkerlocal "destination_lzr4"; deleteWaypoint ((waypoints ar4) select 0); }; _m = createMarkerlocal ['destination_lzr4',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; }; _wp = (group ar4) addWaypoint [_pos,100,1]; _wp setWaypointType 'UNLOAD'; _wp setWaypointStatements ["true", "ar4 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; //hint format ["QG: Communication civile rapportant des hommes armées au %1", _wp]; 0 = [] spawn{ ar4 vehicleChat " Copy new Dz Point on your's map. We start!"; sleep 30; ar4 vehicleChat "Don't go all crazy Rambo and get shot ok"; sleep 60; ar4 vehicleChat "We are approaching! Good luck to you.";}; }; }; move.sqf Spoiler helibmove1 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a1)) > 0} do { deleteWaypoint ((waypoints group a1) select 0); deleteMarkerlocal "destination_lz"; }; _m = createMarkerlocal ['destination_lz',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; _wp = (group a1) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; a1 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli2 helibmove2 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a2)) > 0} do { deleteWaypoint ((waypoints group a2) select 0); deleteMarkerlocal "destination_lz2"; }; _m = createMarkerlocal ['destination_lz2',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; _wp = (group a2) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; a2 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli3 helibmove3 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a3)) > 0} do { deleteWaypoint ((waypoints group a3) select 0); deleteMarkerlocal "destination_lz3"; }; _m = createMarkerlocal ['destination_lz3',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; _wp = (group a3) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; a3 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli4 helibmove4 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group a4)) > 0} do { deleteWaypoint ((waypoints group a4) select 0); deleteMarkerlocal "destination_lz4"; }; _m = createMarkerlocal ['destination_lz4',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; _wp = (group a4) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; a4 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ////////////////// heli rouge helibmover1 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group ar1)) > 0} do { deleteWaypoint ((waypoints group ar1) select 0); deleteMarkerlocal "destination_lzr"; }; _m = createMarkerlocal ['destination_lzr',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; _wp = (group ar1) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; ar1 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli2 rouge helibmover2 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group ar2)) > 0} do { deleteWaypoint ((waypoints group ar2) select 0); deleteMarkerlocal "destination_lzr2"; }; _m = createMarkerlocal ['destination_lzr2',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; _wp = (group ar2) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; ar2 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli3 rouge helibmover3 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group ar3)) > 0} do { deleteWaypoint ((waypoints group ar3) select 0); deleteMarkerlocal "destination_lzr3"; }; _m = createMarkerlocal ['destination_lzr3',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; _wp = (group ar3) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; ar3 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; ///heli4 rouge helibmover4 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; openMap [true, false]; titleText ["Press on map to destination.", "PLAIN"]; onMapSingleClick { while {(count (waypoints group ar4)) > 0} do { deleteWaypoint ((waypoints group ar4) select 0); deleteMarkerlocal "destination_lzr4"; }; _m = createMarkerlocal ['destination_lzr4',_pos]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; _wp = (group ar4) addWaypoint [_pos,100,1]; _wp setWaypointType 'MOVE'; _wp setWaypointStatements ["true", "_groupToAdd setVariable ['FinishedMoving', true];"]; _wp setWaypointBehaviour 'CARELESS'; onMapSingleClick ''; true; ar4 vehicleChat " Copy new position on the map. We remain alert and in height."; }; }; }; BTB.sqf (backtobase) Spoiler helibbtb1 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; while {(count (waypoints group a1)) > 0} do { deleteWaypoint ((waypoints group a1) select 0); deleteMarker "destination_lz"; }; _m = createMarkerlocal ['destination_lz',h1]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; _wp = (group a1) addWaypoint [h1,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; a1 vehicleChat " Copy we go back to the base!"; }; }; ///heli2 helibbtb2 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; while {(count (waypoints group a2)) > 0} do { deleteWaypoint ((waypoints group a2) select 0); deleteMarker "destination_lz2"; }; _m = createMarkerlocal ['destination_lz2',h2]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; _wp = (group a2) addWaypoint [h2,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a2 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; a2 vehicleChat " Copy we go back to the base!"; }; }; ///heli3 helibbtb3 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; while {(count (waypoints group a3)) > 0} do { deleteWaypoint ((waypoints group a3) select 0); deleteMarker "destination_lz3"; }; _m = createMarkerlocal ['destination_lz3',h3]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; _wp = (group a3) addWaypoint [h3,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a3 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; a3 vehicleChat " Copy we go back to the base!"; }; }; ///heli4 helibbtb4 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; while {(count (waypoints group a4)) > 0} do { deleteWaypoint ((waypoints group a4) select 0); deleteMarker "destination_lz4"; }; _m = createMarkerlocal ['destination_lz4',h4]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; _wp = (group a4) addWaypoint [h4,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "a4 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; a4 vehicleChat " Copy we go back to the base!"; }; }; /// heli rouge helibbtbr1 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; while {(count (waypoints group ar1)) > 0} do { deleteWaypoint ((waypoints group ar1) select 0); deleteMarker "destination_lzr"; }; _m = createMarkerlocal ['destination_lzr',hr1]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A1"; _wp = (group ar1) addWaypoint [hr1,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "ar1 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; ar1 vehicleChat " Copy we go back to the base!"; }; }; ///heli2 helibbtbr2 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; while {(count (waypoints group ar2)) > 0} do { deleteWaypoint ((waypoints group ar2) select 0); deleteMarker "destination_lzr2"; }; _m = createMarkerlocal ['destination_lzr2',hr2]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A2"; _wp = (group ar2) addWaypoint [hr2,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "ar2 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; ar2 vehicleChat " Copy we go back to the base!"; }; }; ///heli3 helibbtbr3 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; while {(count (waypoints group ar3)) > 0} do { deleteWaypoint ((waypoints group ar3) select 0); deleteMarker "destination_lzr3"; }; _m = createMarkerlocal ['destination_lzr3',hr3]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A3"; _wp = (group ar3) addWaypoint [hr3,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "ar3 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; ar3 vehicleChat " Copy we go back to the base!"; }; }; ///heli4 helibbtbr4 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; while {(count (waypoints group ar4)) > 0} do { deleteWaypoint ((waypoints group ar4) select 0); deleteMarker "destination_lzr4"; }; _m = createMarkerlocal ['destination_lzr4',hr4]; _m setMarkerTypelocal 'mil_pickup'; _m setMarkerColorlocal 'ColorBlue'; _m setMarkerTextlocal "A4"; _wp = (group ar4) addWaypoint [hr4,100,1]; _wp setWaypointType 'TR UNLOAD'; _wp setWaypointStatements ["true", "ar4 land 'LAND'; {_x setUnitPos 'middle'; _x setSpeedMode 'LIMITED'; _x setCombatMode 'YELLOW';}foreach units _grp1;"]; _wp setWaypointBehaviour 'CARELESS'; ar4 vehicleChat " Copy we go back to the base!"; }; }; spawn.sqf (trace heli) Spoiler helibsp1 = { /// Traceur helico bluefor sur map if (side player == blufor) then { if (side player == opfor) exitWith {}; //spawn { _marker1 = createMarkerlocal ["Mark1",[0,0,0]]; _marker1 setMarkerColorlocal "ColorRed"; _marker1 setMarkerShapelocal "ICON"; _marker1 setMarkerTypelocal "mil_dot"; _marker1 setMarkerTextlocal "FlightLeaderA1"; hint "Support A1 ready"; [] spawn { while {not isnull a1} do { "Mark1" setmarkerposlocal getpos a1; sleep 0.5; if (!alive a1) exitWith {deletemarkerlocal "mark1"}; }; }; }; }; ///heli2 helibsp2 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; _marker2 = createMarkerlocal ["Mark2",[0,0,0]]; _marker2 setMarkerColorlocal "ColorRed"; _marker2 setMarkerShapelocal "ICON"; _marker2 setMarkerTypelocal "mil_dot"; _marker2 setMarkerTextlocal "FlightLeaderA2"; hint "Support A2 ready"; [] spawn { while {not isnull a2} do { "Mark2" setmarkerposlocal getpos a2; sleep 0.5; if (!alive a2) exitWith {deletemarkerlocal "mark2"}; }; }; }; }; ///heli3 helibsp3 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; _marker3 = createMarkerlocal ["Mark3",[0,0,0]]; _marker3 setMarkerColorlocal "ColorRed"; _marker3 setMarkerShapelocal "ICON"; _marker3 setMarkerTypelocal "mil_dot"; _marker3 setMarkerTextlocal "FlightLeaderA3"; hint "Support A3 ready"; [] spawn { while {not isnull a3} do { "Mark3" setmarkerposlocal getpos a3; sleep 0.5; if (!alive a3) exitWith {deletemarkerlocal "mark3"}; }; }; }; }; ///heli4 helibsp4 = { if (side player == blufor) then { if (side player == opfor) exitWith {}; _marker4 = createMarkerlocal ["Mark4",[0,0,0]]; _marker4 setMarkerColorlocal "ColorRed"; _marker4 setMarkerShapelocal "ICON"; _marker4 setMarkerTypelocal "mil_dot"; _marker4 setMarkerTextlocal "FlightLeaderA4"; hint "Support A4 ready"; [] spawn { while {not isnull a4} do { "Mark4" setmarkerposlocal getpos a4; sleep 0.5; if (!alive a4) exitWith {deletemarkerlocal "mark4"}; }; }; }; }; /// trace heli rouge helibspr1 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; _marker = createMarkerlocal ["Markr",[0,0,0]]; _marker setMarkerColorlocal "ColorRed"; _marker setMarkerShapelocal "ICON"; _marker setMarkerTypelocal "mil_dot"; _marker setMarkerTextlocal "FlightLeaderA1"; hint "Support A1 ready"; [] spawn { while {not isnull ar1} do { "Markr" setmarkerposlocal getpos ar1; sleep 0.5; if (!alive ar1) exitWith {deletemarkerlocal "markr"}; }; }; }; }; ///heli2 helibspr2 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; _marker2 = createMarkerlocal ["Markr2",[0,0,0]]; _marker2 setMarkerColorlocal "ColorRed"; _marker2 setMarkerShapelocal "ICON"; _marker2 setMarkerTypelocal "mil_dot"; _marker2 setMarkerTextlocal "FlightLeaderA2"; hint "Support A2 ready"; [] spawn { while {not isnull ar2} do { "Markr2" setmarkerposlocal getpos ar2; sleep 0.5; if (!alive ar2) exitWith {deletemarkerlocal "markr2"}; }; }; }; }; ///heli3 helibspr3 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; _marker3 = createMarkerlocal ["Markr3",[0,0,0]]; _marker3 setMarkerColorlocal "ColorRed"; _marker3 setMarkerShapelocal "ICON"; _marker3 setMarkerTypelocal "mil_dot"; //_marker3 setMarkerSizelocal [1,1]; _marker3 setMarkerTextlocal "FlightLeaderA3"; hint "Support A3 ready"; [] spawn { while {not isnull ar3} do { "Markr3" setmarkerposlocal getpos ar3; sleep 0.5; if (!alive ar3) exitWith {deletemarkerlocal "markr3"}; }; }; }; }; ///heli4 helibspr4 = { if (side player == opfor) then { if (side player == blufor) exitWith {}; _marker4 = createMarkerlocal ["Markr4",[0,0,0]]; _marker4 setMarkerColorlocal "ColorRed"; _marker4 setMarkerShapelocal "ICON"; _marker4 setMarkerTypelocal "mil_dot"; //_marker4 setMarkerSizelocal [1,1]; _marker4 setMarkerTextlocal "FlightLeaderA4"; hint "Support A4 ready"; [] spawn { while {not isnull ar4} do { "Markr4" setmarkerposlocal getpos ar4; sleep 0.5; if (!alive ar3) exitWith {deletemarkerlocal "markr4"}; }; }; }; }; ALT.sqf (i can't go at 15m?) Spoiler ///heli2 helib50M1 = { a1 SetBehaviour "Careless"; a1 flyInHeight 50; }; helib100M1 = { a1 SetBehaviour "Careless"; a1 flyInHeight 100; }; helib200M1 = { a1 SetBehaviour "Careless"; a1 flyInHeight 200; }; helib400M1 = { a1 SetBehaviour "Careless"; a1 flyInHeight 400; }; helib600M1 = { a1 SetBehaviour "Careless"; a1 flyInHeight 600; }; ///heli2 helib50M2 = { a2 SetBehaviour "Careless"; a2 flyInHeight 50; }; helib100M2 = { a2 SetBehaviour "Careless"; a2 flyInHeight 100; }; helib200M2 = { a2 SetBehaviour "Careless"; a2 flyInHeight 200; }; helib400M2 = { a2 SetBehaviour "Careless"; a2 flyInHeight 400; }; helib600M2 = { a2 SetBehaviour "Careless"; a2 flyInHeight 600; }; ///heli3 helib50M3 = { a3 SetBehaviour "Careless"; a3 flyInHeight 50; }; helib100M3 = { a3 SetBehaviour "Careless"; a3 flyInHeight 100; }; helib200M3 = { a3 SetBehaviour "Careless"; a3 flyInHeight 200; }; helib400M3 = { a3 SetBehaviour "Careless"; a3 flyInHeight 400; }; helib600M3 = { a3 SetBehaviour "Careless"; a3 flyInHeight 600; }; ///heli4 helib50M4 = { a4 SetBehaviour "Careless"; a4 flyInHeight 50; }; helib100M4 = { a4 SetBehaviour "Careless"; a4 flyInHeight 100; }; helib200M4 = { a4 SetBehaviour "Careless"; a4 flyInHeight 200; }; helib400M4 = { a4 SetBehaviour "Careless"; a4 flyInHeight 400; }; helib600M4 = { a4 SetBehaviour "Careless"; a4 flyInHeight 600; }; /// trace heli rouge ///Heli rouge 1 helib50Mr1 = { ar1 SetBehaviour "Careless"; ar1 flyInHeight 50; }; helib100Mr1 = { ar1 SetBehaviour "Careless"; ar1 flyInHeight 100; }; helib200Mr1 = { ar1 SetBehaviour "Careless";; ar1 flyInHeight 200; }; helib400Mr1 = { ar1 SetBehaviour "Careless"; ar1 flyInHeight 400; }; helib600Mr1 = { ar1 SetBehaviour "Careless"; ar1 flyInHeight 600; }; ///Heli rouge 2 helib50Mr2 = { ar2 SetBehaviour "Careless"; ar2 flyInHeight 50; }; helib100Mr2 = { ar2 SetBehaviour "Careless"; ar2 flyInHeight 100; }; helib200Mr2 = { ar2 SetBehaviour "Careless"; ar2 flyInHeight 200; }; helib400Mr2 = { ar2 SetBehaviour "Careless"; ar2 flyInHeight 400; }; helib600Mr2 = { ar2 SetBehaviour "Careless"; ar2 flyInHeight 600; }; ///Heli rouge 3 helib50Mr3 = { ar3 SetBehaviour "Careless"; ar3 flyInHeight 50; }; helib100Mr3 = { ar3 SetBehaviour "Careless"; ar3 flyInHeight 100; }; helib400Mr3 = { ar3 SetBehaviour "Careless"; ar3 flyInHeight 400; }; helib600Mr3 = { ar3 SetBehaviour "Careless"; ar3 flyInHeight 600; }; ///Heli rouge 4 helib50Mr4 = { ar4 SetBehaviour "Careless"; ar4 flyInHeight 50; }; helib100Mr4 = { ar4 SetBehaviour "Careless"; ar4 flyInHeight 100; }; helib200Mr4 = { ar4 SetBehaviour "Careless"; ar4 flyInHeight 200; }; helib400Mr4 = { ar4 SetBehaviour "Careless"; ar4 flyInHeight 400; }; helib600Mr4 = { ar4 SetBehaviour "Careless"; ar4 flyInHeight 600; }; Any error, sugestion to amélior this script are Welkom! 1 Share this post Link to post Share on other sites
HazJ 1289 Posted August 21, 2018 I gave up reading after few of your posts. I am not having a go but you could just edit mostly here and remove stuff that is working (unless really required). I have just broke my mouse scroll wheel (lol! jk ) scrolling through how many separate files. Again, not having a go. Please explain directly what you want, what you have done, what the issue is, etc... Use plain words, no code. I will help you from there. I am no longer sure if the problem is the same as the first post you made? Which doesn't make sense or work. You have undefined variable _pos, etc... Why create marker at [0, 0, 0] which you never move, etc? I have a general idea of what you want but will wait for your confirmation before writing it / helping. I also assume you have a lot of repeated code which not only is unnecessary but making your code really long which can impact several things. 2 Share this post Link to post Share on other sites
Danidan 17 Posted August 21, 2018 Hello, actually it's too long and I think we can compact all the heli in a single block of code. (It's my question of how?) The current script works well. For the _pos it's a mistake I get some script left and right because I'm unable to do that. My goal is to create a map area when I click on it from the Ace menu and erase it and put it back each time when you reuse the menu. That's where we will move the helicopter. MOVE for displacement and staton flight, DZ for land, BTB for return to base. Each helico is controlled separately by the defined classes. (currently it works well in the) 1 Share this post Link to post Share on other sites
Sayker 1 Posted August 26, 2018 WOuaaaa I'am really interested by this script, where we can download this addon ? =))))) Ths so much Just a question : are you french ? ^^ Share this post Link to post Share on other sites
Mr H. 402 Posted August 26, 2018 Hey if you're still interested my mod contains a heli taxi system that is fully configurable and handled by the server:https://mrhmilsimtools-arma3-mod.wikia.com/wiki/Helicopter_taxi_system 1 Share this post Link to post Share on other sites
Sayker 1 Posted August 27, 2018 @Mr H, oh yeahh I'm really interested !! i will test your script =))) wouaaa you have many other scripts !! =) have you a mission test ? Share this post Link to post Share on other sites
Mr H. 402 Posted August 27, 2018 Yes the link to the test mission is on the mod''s page on the workshop and there is an unpboed version of the mission in the mod's directory. 1 Share this post Link to post Share on other sites
Sayker 1 Posted August 28, 2018 do you have a discord to chat ? =) Share this post Link to post Share on other sites
Sayker 1 Posted August 28, 2018 Mais tu es français ? ^^ Share this post Link to post Share on other sites
Mr H. 402 Posted August 28, 2018 2 hours ago, Sayker said: Mais tu es français ? ^^ Yup mais ça se fait pas de parler en français sur un forum international, je t'ai répondu en MP. Don't worry guys the conversation in cheesemonger's latin will carry on in private. 1 Share this post Link to post Share on other sites
Sayker 1 Posted August 29, 2018 Yes sry !!! ;) i didn't known =) Share this post Link to post Share on other sites