Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Auto triggered mission when target is out of range

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Auto triggered mission when target is out of range Page: [1]
Login
Message << Older Topic   Newer Topic >>
Auto triggered mission when target is out of range - 6/29/2014 10:48:55 AM   
Maromak


Posts: 1030
Joined: 12/26/2007
From: Australia
Status: offline
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
Post #: 1
RE: Auto triggered mission when target is out of range - 8/16/2014 11:53:51 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Logged.

_____________________________


(in reply to Maromak)
Post #: 2
RE: Auto triggered mission when target is out of range - 8/16/2014 4:29:50 PM   
#Grumble


Posts: 111
Joined: 8/15/2013
Status: offline
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.

(in reply to Maromak)
Post #: 3
RE: Auto triggered mission when target is out of range - 1/20/2015 7:30:12 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Hi,

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

Thanks!

_____________________________


(in reply to #Grumble)
Post #: 4
RE: Auto triggered mission when target is out of range - 1/20/2015 7:40:55 AM   
Maromak


Posts: 1030
Joined: 12/26/2007
From: Australia
Status: offline
Thanks Grumble. I'm planning to use what's left of my Christmas holidays to redo this scenario to include some Lua.

_____________________________

Certa Cito

(in reply to #Grumble)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Auto triggered mission when target is out of range Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

4.625