Jump to content

Recommended Posts

Posted

I need some help to figure out how to solve a puzzle (a t least for me :D )

In my mission I placed a trigger zone and, outside, a convoy moving inbound the front.

I want to put the following condition....

- if the client Aircraft fly over or it's in sight of the convoy, even if outside the trigger zone, the AI Aircraft defender will start their intercept mission and try to engagé the client Aircraft.

- if the convoy is destroyed the AI Aircraft defender won't receive any alarm so they won't start the mission.

- when the client Aircraft enter into the trigger and the convoy is alive the AI Aircraft start the intercept mission

 

I tried to solve this using ME trigger and action but I can't figure out how to set AND condition....I guess it needs to be set using LUA but this is out of my capabilities.

thanks a lot for any help

Posted (edited)

AND conditions are conditions without any OR operator between them so all the conditions have to be true for the trigger to be implemented.

 

From what you describe it sounds like you have 2 conditions to start the AI Defender aircraft:

1. When the client aircraft first spots the convoy.

2. When the client aircraft enters a trigger zone and the convoy is still alive.

 

When the convoy is destroyed no intercept will be done.

 

You could do this in one trigger with an OR condition between the two conditions above. In both cases you will want to test that the convoy is still alive.

 

So something like this:

 

Unit Alive (convoy) AND client aircraft in spotting zone - enable AI Defender aircraft

OR

Unit Alive (convoy) AND client aircraft in trigger zone - enable AI Defender aircraft

 

So if the convoy is dead both conditions will be false and the AI Defender aircraft won't intercept.

 

If you need to trigger this when the convoy is in a certain zone just add that condition to both sections above.

 

Attached is a sample mission so you can see what I mean.

Sample Intercept.miz

Edited by Sabre-TLA

F-15C-User-Bar-ACM.v2.jpg

MapleFlagMissions - Read Our Blog for Updates

  • Recently Browsing   0 members

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