Jump to content

Recommended Posts

Posted

Hi everybody,

 

I was looking if it's possible with the ME to have a circular area (defined by a radius) that would be attached to a flight who would engage any ennemy aircraft entering the area ?

 

I am aware about the "Unit in mobile zone" trigger but it is not what I am looking for in particular because I would like that it applies not to a "specific unit entering the area" but to "any ennemy aircraft" entering it.

 

Unless I am wrong it sounds that it is not a ME feature...

Does this feature already available as a Lua script (cant'find it) and if not how would you code this ?

 

Thanks

Posted (edited)

Hi Feefifofum,

 

Dude I know you love .lua but look in the GUI for Christ's sake. lol.gif

LOL :smartass:

 

 

Under advanced waypoint actions for an aircraft with the CAP or CAS you will find SEARCH THEN ENGAGE IN ZONE which does exactly what you're saying. Define the zone radius then drag the center to wherever you want.

 

Well not exactly but it wasn't clear in my message. I want that the area is tighted to the flight and move with it along its flight path. Unless I am wrong this is not the case here as the area is fixed somewhere.

 

Thanks anyway :smilewink:

Edited by CougarFFW04
Posted

I see what you're saying now. I don't believe there is a feature that specifically does that and a script would be pretty work intensive...to my thinking, the best way to go about it would be to start with all planes set to WEAPON HOLD and build a table of all red a/c and blue a/c in the area, then compare the positions of each a/c to each a/c on the opposite coalition. If a hostile aircraft was within X distance, you could flip the ROE to WEAPON FREE and they should engage.

 

Steggles' EWR script would probably be a good place to start to see how to get the BRA from unit A to unit B.

Posted

There is but not in a context that would allow you to dictate engagement behaviors on a basis that wasn't per-group/unit...

 

A combination of UNIT INSIDE MOVING ZONE, ROE: ONLY DESIGNATED, AND SEARCH THEN ENGAGE UNIT would work but it would require a set of complex triggers and flag toggles for every unit you wanted to be involved in the process.

Posted (edited)
Thought there was a way to anchor a trigger zone to a unit or group?

 

Yes, that's the easy part.

The problem comes when programming AI behaviour.

 

To my surprise, I've managed to pull this off with relative ease using MOOSE.

 

I've attached a simple MOOSE demo mission + the simple MOOSE script it runs on.

 

A flight of two F15C will engage ANY red plane/chopper groups entering a 60Km moving zone (F15C group leader acts as the center of the moving zone).

 

The script has a "bandit in zone" check that runs every 5 seconds, when a bandit group is detected, the F15C will engage.

 

If no enemy groups are detected in zone, the flight will hold position for 5 minutes (probably more than that, though).

 

This behaviour will be repeated until the F15C flight either enters bingo fuel or runs out of it (I guess).

 

The first catch is that the F15C flight needs to be told what to do at every step... failure to give it a scripted task will lead to immediate RTB.

The second catch is that the script will stop working if the F15C flight leader dies.

 

EDIT: Btw, I've done some more testing and looks like the F15C group will only engage if its role is set to either CAP or CAS (the scripted attack task won't work otherwise. I've no idea why)

Engage any bandits in moving zone.miz

Task attack any in zone.lua

Edited by Hardcard
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...