ChaosDuck 20 Report post Posted December 25, 2018 (edited) I was looking around for an autopilot script but didn't find anything that would work on my server (only one i found would freeze my plane mid air for some reason) so i decided to learn how create some basic arma scripts and gui, this basically gives you a scroll wheel option to get the hud out and you mark a place on the map and select the radius,height and side then it will spawn an ai and place him in the pilot seat and take over the flying. you can download it here https://github.com/dulanw/A3AutoPilotScript remember to change MINIMUM_SPEED andMINIMUM_HEIGHT_ASL in the config file since i set those to 0 and set DEBUG_MARKERS to 0 otherwise its going to create a bunch of markers. This is my first script that i've made in arma so I don't know if there will be any problems with it if you use it in a plane with more players since i only managed to test it out with 1 other player inside the plane at the same time, please tell me in the comments below if there are any problems. also plan on adding some other features like deploying flares since right now the ai only deploy flares once and doesn't manage to evade rockets. *edit* forgot to mention there is bug where you can't switch seats if you turn on autopilot from the pilot seat, so if possible then switch to the co-pilot seat and take control or fly really high before switching to any other gunner seat *edit* had some problems with the ai not using flares when targeted by rockets so you can use this https://github.com/dulanw/A3WarningScript to display a warning to the gunner. also added an option to limit the speed of the vehicle, so that ai doesn't try to fly into the way-points at 600km/h and can't turn in time for the next one Edited December 27, 2018 by ChaosDuck 4 1 Share this post Link to post Share on other sites
Z80CPU 527 Report post Posted December 26, 2018 Thanks! Share this post Link to post Share on other sites
厉害救济 1 Report post Posted December 30, 2018 i followed your installtion. but i did not get a scroll wheel option in game . and the following is my installtion class RscTitles { #include "custom\PilotHUD\dialog.hpp" #include "dialog\TUT_gui_veh.hpp" #include "ExAdClient\RscTitles.cpp" #include "custom\MWarning\dialog.hpp" }; Share this post Link to post Share on other sites
ChaosDuck 20 Report post Posted December 30, 2018 (edited) 11 hours ago, 厉害救济 said: i followed your installtion. but i did not get a scroll wheel option in game . and the following is my installtion class RscTitles { #include "custom\PilotHUD\dialog.hpp" #include "dialog\TUT_gui_veh.hpp" #include "ExAdClient\RscTitles.cpp" #include "custom\MWarning\dialog.hpp" }; MWarning and PilotHUD are my other 2 scripts. In your description.ext you need to have #include "custom\ChaosAutoPilot\Dialog\defines.hpp" #include "custom\ChaosAutoPilot\Dialog\dialogs.hpp" class cfgFunctions { #include "custom\ChaosAutoPilot\functions.hpp" }; and in your initLocalPlayer.sqf you need to have call ChaosPilot_fnc_Init; these will add the autopilot, also sorry for the late reply. Edited December 30, 2018 by ChaosDuck Share this post Link to post Share on other sites