moespeeds Posted October 9, 2018 Posted October 9, 2018 I have a mission that is 14 hours long, with lots of aircraft. So what I'd like to do is spawn 3 tankers from the ramp, have them fly out to 3 different locations on the map, and have them orbit inside a zone. Using the "Time More" trigger, I would like to automatically rotate them every hour and have a new tanker spawn and fly out to come on station. As the new tanker arrives, the old tanker would RTB. Is this even possible? I have no clue about using scripts, but I can learn. Moe "Moespeeds" Colontonio vVMA 231 http://www.vvma-231.com/ Looking for a serious US based Harrier Squadron? We are recruiting!
Ignition Posted October 9, 2018 Posted October 9, 2018 With MOOSE you can do something easy like this: spawn_tanker1 = SPAWN:NewWithAlias("tanker1","TEXACO"):InitRandomizeRoute(0,0,10000,1000):InitRepeatOnEngineShutDown():InitLimit(1,6):SpawnScheduled(300,0) spawn_tanker2 = SPAWN:NewWithAlias("tanker2","SHELL"):InitRandomizeRoute(0,0,10000,1000):InitRepeatOnEngineShutDown():InitLimit(1,6):SpawnScheduled(300,0) spawn_tanker3 = SPAWN:NewWithAlias("tanker3","ARCO"):InitRandomizeRoute(0,0,10000,1000):InitRepeatOnEngineShutDown():InitLimit(1,6):SpawnScheduled(300,0) this will spawn the tanker with the name "tanker1" "tanker2" "tanker3" in the mission editor and set their name to "TEXACO" "SHELL" and "ARCO". InitRandomizeRoute(0,0,10000,0) will randomize the waypoints of the mission editor with 10km radious InitRepeatOnEngineShutDown() will respawn the tanker when they land InitLimit(1,6) will limit the ammount of planes active at the same time (1) and the ammount of planes in reserve (6), if reserve reaches 0 (they spawn 6 times) they will not respawn anymore SpawnScheduled(300,0) this will spawn a new airplane every 5 minutes, but it will be limited as 1 active since InitLimit is set to 1 You should learn to use MOOSE, its very easy and powerfull. The most difficult for me is to set up Lua Development Tools and to download the correct MOOSE version :lol:. Is not... very clear... https://flightcontrol-master.github.io/MOOSE_DOCS/ https://github.com/FlightControl-Master
Hardcard Posted October 9, 2018 Posted October 9, 2018 (edited) @ Ignition I don't think moespeeds will understand that code example (let alone use it in a mission, since several other things need to be in place for that to even work). :book: is needed. First step for him should be to learn basic Lua, then get acquainted with the available scripting frameworks for DCS (or simply use the built-in scripting engine). @ moespeeds Here are a few useful links, in case you decide to learn some scripting for DCS: - Basic Lua tutorials - Simulator Scripting Engine guide - Simulator Scripting Engine documentation Now, if you're interested in using the MOOSE framework, check this out: - MOOSE Youtube Channel - - - MOOSE documentation There's also another scripting framework called MIST, but it isn't as well documented (harder to get into): - MIST documentation - MIST guide (pdf) Edited October 9, 2018 by Hardcard [sIGPIC][/sIGPIC]
moespeeds Posted October 9, 2018 Author Posted October 9, 2018 Thank you hardcard, I appreciate the links. I'm not opposed to learning the scripting process, it seems to be the direction I'm heading anyway as I make more complicated missions. Moe "Moespeeds" Colontonio vVMA 231 http://www.vvma-231.com/ Looking for a serious US based Harrier Squadron? We are recruiting!
Habu_69 Posted October 9, 2018 Posted October 9, 2018 +1 for MOOSE familiarization. Mission control as limitless as one's imagination.
Recommended Posts