How to script deck launched intercepts? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series



Message


FlyingBear -> How to script deck launched intercepts? (6/28/2015 6:00:28 PM)

Here is what I would like to do: For each single or group of bogeys that enters a certain area, launch a pair of fighters to intercept. E.g., if two aircraft are detected two pairs of fighters should get launched; if three other groups are detected three more pairs should be launched at those.

As an added bonus: After a pair of fighters have dealt with their assigned targets they should engage any other target until Winchester or Bingo.

After each intercept the fighters should rearm and refuel and be ready for a new assignment.

I cannot find a good way to script this. I have some vague ideas about using Lua to add interceptors to either an AAW patrol or an AAW strike mission when bogeys are detected but I am not sure how to remove them correctly after a completed intercept or knowing what unit to add for a new intercept.

Does anyone know how I could do this? Any suggestions are appreciated! [:)]

Thanks,
/FlyingBear




thewood1 -> RE: How to script deck launched intercepts? (6/28/2015 6:07:44 PM)

yes




FlyingBear -> RE: How to script deck launched intercepts? (6/28/2015 6:11:06 PM)

quote:

yes


Well played! [:D] Got a good laugh out of that one.[:)]

Allow me to modify my request: In addition to advising whether or not they know how to do this, please post suggestions for how it would be done?




AlanChan -> RE: How to script deck launched intercepts? (6/30/2015 4:13:14 PM)

Prepare 4-5 two fighter AAW patrol missions and set them as inactive. then make an event that once bogies enter their patrol area, run a lua script to decide how many of them should be launched, set approporate number of mission go active.




FlyingBear -> RE: How to script deck launched intercepts? (6/30/2015 5:57:00 PM)

Can I actually do things like check how many bogeys are in the defensive zone, how many AAW missions (patrol or AAW strike) are currently active, and based on that decide how many further AAW missions I should activate? Maybe I would inactivate missions based on bogeys destroyed, or perhaps run some periodic garbage collection instead. Seems I need to read up on Lua details.




AlanChan -> RE: How to script deck launched intercepts? (7/1/2015 5:03:07 PM)

I would like to know it too, I guess one can set up some periodic events and wait until entire package of bogies were inside the patrol zone for a determined time, then calculate number of intercepts and launch them. But I do not know how. If a repeatable "enemy enters" event were set up, I doubt it's effectiveness on multiple targets,especially if they zig zag near edge of patrol zone.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.640625