Auto triggered mission when target is out of range

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
User avatar
Maromak
Posts: 1071
Joined: Wed Dec 26, 2007 1:40 pm
Location: Australia

Auto triggered mission when target is out of range

Post by Maromak »

Hi. I am in the middle of refreshing Ex Pitch Black where one of the events is triggered on detection of another hostile unit. The issue I am having is that in some cases the enemy unit will be detected while well out of range of the units (aircraft) assigned to strike the target(s). I have experimented with a time activation but this seems to be overruled by the triggered event activating the mission.

I can select a Long Range weapon loadout but this will significantly reduce the effectiveness of the strike. As others have mentioned previously, it would be handy to have a combined 'Unit Detected' and 'Enters Area' trigger. I would rather not set up a standing patrol as I would like to ensure that all aircraft launch their weapons at once.

Any tips?

Thanks in advance.
Certa Cito
User avatar
#Grumble
Posts: 19
Joined: Thu Aug 15, 2013 2:58 pm

RE: Auto triggered mission when target is out of range

Post by #Grumble »

hi Meromak
there is a possible "hack" that might help you here (until the feature will be added),
practically you want a trigger that is combining two other triggers with AND logic:
unit is detected AND unit enters area.

To emulate the AND logic you can use the SCORE of a SIDE as a counter to track how many of your conditions are true. The safest is to add a new SIDE for this, say "LOGIC" side, or, you can use the CIVILIAN side if you don't want the "hack" to show.
Your original conditions trigger actions to add +1 to the score of LOGIC
and your original strike action is triggered when LOGIC's points reach 2.

The events you need would look something like this:
- Event_ADF_ship_detected( condition(ADF_ship_detected), action(LOGIC+1) )
- Event_ADF_ship_enters_area( condition(ADF_ship_enters_area), action(LOGIC+1) )
- Event_ASuW_strike( condition(LOGIC=2), action(ASuW_strike) )

Since the ADF ship might also leave the area (human controlled) you want to add an event to "dearm" the trigger in this case:
- Event_ADF_ship_leaves_area( condition(ADF_ship_NOT_enters_area), action(LOGIC-1) )

Unfortunately there is no NOT-detected (contact lost) trigger, so we are unable to do the same for the detected event. The hack will not be perfect. But at least make sure to set the Event_ADF_ship_detected as not repeatable, to avoid triggering the strike by detecting the ship, then loosing contact and detecting again.
The other events should be repeatable.
3442kts
Dimitris
Posts: 15379
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: Auto triggered mission when target is out of range

Post by Dimitris »

Hi,

Is this still a problem? If yes, is it possible to post a save?

Thanks!
User avatar
Maromak
Posts: 1071
Joined: Wed Dec 26, 2007 1:40 pm
Location: Australia

RE: Auto triggered mission when target is out of range

Post by Maromak »

Thanks Grumble. I'm planning to use what's left of my Christmas holidays to redo this scenario to include some Lua.
Certa Cito
Post Reply

Return to “Tech Support”