Jump to content

Help with FLAG switching - AI refuse to change ROE (?)


Recommended Posts

Posted (edited)

Hi there.

First I want to clarify that I'm pretty noob at ME and have zero idea of lua scripting, I don't even consider getting into it, and somehow I struggle with ME triggers that should be much easier to use, I think.

I'm editing a mission that uses an electronic war aircraft to jam SHORADs to support an OCA strike disabling some Sa-8, so I thoguht of setting up a moving zone on the EW plane so when it is close enough to the SHORADs the will change to ROE weapons hold using user flags and switched condition triggers.

The problem is that I'm getting inconsistent results, some times AI doesn't fire, but most of the time they still fire at me even with the conditions met to hold fire (I set a text message every time the flag is changed to ensure triggers are working, and they do).

I have done a basic mission using the same logic (just changing blue coalition AC inside/outside zone to activate the triggers instead of enemy SAMs inside moving zone) for quick testing, and as I said, SAMs keep firing at me most of the time. I'll upload it if someone wants to check.

 

Desktop Screenshot 2021.11.12 - 10.34.46.68.jpg

Desktop Screenshot 2021.11.12 - 10.33.44.49.jpg

Desktop Screenshot 2021.11.12 - 10.33.51.84.jpg

Desktop Screenshot 2021.11.12 - 10.34.01.42.jpg

Desktop Screenshot 2021.11.12 - 10.34.12.50.jpg

Desktop Screenshot 2021.11.12 - 10.34.19.65.jpg

SAM-8 ROE change.miz

Edited by Bizarro
Posted

The group waypoint actions are run when the group reaches the waypoint. They do need continuously evaluate them.

Therefore, the ROE will depend on which flag is set when the mission is started.

You need to add the ROE as a 'triggered action' on the group (3rd tab in the group properties). Then from the trigger, in the actions add a AI TASK PUSH action and select the appropriate triggered action to change the group's ROE.

  • Recently Browsing   0 members

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