Jump to content

Message triggers for protection from specific enemies?


Recommended Posts

Posted (edited)

I'm finishing up my newbie campaign and since it's an air to air SP campaign, there are a few SEAD escort missions. I was wondering if it's possible to have a Mission Accomplished trigger by protecting SEAD assets from specific aircraft. In other words, if they get shot down by a SAM site, that's on them and you shouldn't receive a mission failure since they weren't shot down by enemy aircraft. However, if you failed to protect them from said enemy aircraft, you would then get the Mission Fail trigger.

 

I'm asking because in some scenarios it may be possible for the SEAD assets to do their job without having to engage enemy aircraft, but it doesn't help any if the trigger has a GROUP ALIVE condition when they may be shot down by arty or other SAM sites: something you have no control over as it's not your job.

 

What I'm looking for is a GROUP NOT KILLED BY condition, or something of the sort. Does anyone have any idea if this can be done?

Edited by Trailer
Posted

I don't know if it is possible with the trigger system (I assume not, but I am not familiar enough with triggers to say for sure).

 

It should be possible with a custom Lua script. You can define an event handler to be notified when a weapon hits. AFAIK at that point you also get the information about who shot that weapon, so you can detect which unit killed your target. If it was an enemy aircraft, set a flag that causes the mission to fail.

  • Recently Browsing   0 members

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