PaxxPrime Posted October 25, 2018 Posted October 25, 2018 Hello all, i´m quite new to DCS Mission Editor and i`ve came across an Problem regarding Air to Air Refueling. Basic idea is to create an simple refueling Training Mission. Depart, meet the Tanker, take some fuel, RTB. My Question now, is there a way to set a mission task/goal for picking up fuel? For example, if player picked up a specific amount of fuel or maintain a stable connection to the tanker for a specific time the player get a message that the task is complete and he may RTB or somthing else? thanks for help Chris
Hardcard Posted October 25, 2018 Posted October 25, 2018 (edited) Yes, there are ways of doing this, but I'm afraid they involve Lua scripting. Afaik, ME doesn't offer the option to set up "fuel quantity" / "tanker contact" checks, which would be needed for such a mission to work. This can be easily achieved through scripting, though. PS. I have a MOOSE mission project which offers air refuelling tasks to clients, with voice/text messages and all (everything is handled via F10 menu). Trouble is that the scripts for this mission are rather long and require basic Lua / MOOSE knowledge. If you're interested, I could give you some pointers and share scripts. Edited October 25, 2018 by Hardcard [sIGPIC][/sIGPIC]
PaxxPrime Posted October 25, 2018 Author Posted October 25, 2018 ok i have never been into scripting, but I`ll try this. would be great if you can give me those scripts.
Hardcard Posted October 25, 2018 Posted October 25, 2018 (edited) That's the thing, though, you won't understand the scripts without basic Lua / MOOSE knowledge, so they'll be useless to you. I recommend that you start with this Lua tutorial site in order to get acquainted with Lua. Also, check out the links in this post to get started with the DCS scripting engine and MOOSE. It seems like a lot to process at the beginning, but scripting is actually kind of simple (once you understand the basic rules), just take it one little step at a time and you'll be writing your own scripts in a matter of days. Edited October 25, 2018 by Hardcard [sIGPIC][/sIGPIC]
S D Posted October 26, 2018 Posted October 26, 2018 Hardcard Would you mind sharing the project/scripts. Always interested in how people are using MOOSE.
Hardcard Posted October 27, 2018 Posted October 27, 2018 @Shadow.D. I'm working on a simplified version for PaxxPrime (with comments), which will only include air refuelling for a single F15C client. I'll post it here when I'm done. :thumbup: [sIGPIC][/sIGPIC]
Hardcard Posted October 28, 2018 Posted October 28, 2018 (edited) I've finished commenting, tweaking and testing my air refueling demo mission (a bare bones version of it, rather :D ), so, as promised, here you have it! Single F15C client available, with access to F10 menu commands (which are used to manage the air refueling task). A commented version of the mission script is also attached. Still, as I mentioned earlier, basic Lua / MOOSE knowledge is needed in order to understand what's going on :book: Hope you find it helpful! EDIT: Reuploaded the commented script yet again! Apparently, the whole script got shifted by 3 lines (which messed up line references in some comments :doh:). Also, I corrected a few other minor mistakes. It should all be ok now :thumbup:Air refueling mission demo.mizAir Refueling mission demo.lua Edited October 29, 2018 by Hardcard [sIGPIC][/sIGPIC]
Backy 51 Posted October 28, 2018 Posted October 28, 2018 I've finished commenting, tweaking and testing my air refueling demo mission (a bare bones version of it, rather :D ), so, as promised, here you have it! Single F15C client available, with access to F10 menu commands (which are used to manage the air refueling task). A commented version of the mission script is also attached. Still, as I mentioned earlier, basic Lua / MOOSE knowledge is needed in order to understand what's going on :book: Hope you find it helpful! Thanks for sharing Hardcard! The LUA Tutorial site is pure gold. I don't need no stinkin' GPS! (except for PGMs :D) [sIGPIC][/sIGPIC]
S D Posted October 28, 2018 Posted October 28, 2018 Brilliant, thanks alot for putting this together.
PaxxPrime Posted October 29, 2018 Author Posted October 29, 2018 Thank you for the file, thats a big help. i´m almost done with the Tutorials from FlightControl how to use MOOSE and how LUA works. Will try to get a Mission running.... regards
Recommended Posts