SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   DW Mission Designers' Forum (https://www.subsim.com/radioroom/forumdisplay.php?f=191)
-   -   destination trigger with range requirement (https://www.subsim.com/radioroom/showthread.php?t=246151)

Wolfcat 08-02-20 02:22 AM

destination trigger with range requirement
 
So one of my mission goals is to trail a sub to an area while staying with 20nmi of the target. So the goal is considered complete if the target reaches the destination while my own ship is within 20nmi of that target ship. So how do I do that?

Polak2 08-02-20 11:43 AM

I am sure no expert here but I would imagine that

a. enemy sub would need tactics "Transit"
b. last waypoint would have a trigger "First Met Criteria – This method will return true once the criteria of a trigger is met for the first time" attached to that last waypoint
c. script "End Mission – End the mission now, exit to debrief" should be added there.
d. trigger "Range " should be used to maintain 20 nm sparation distance

Obviously some variations maybe needed to this in case it is not working.

Wolfcat 08-02-20 02:11 PM

For d. the range trigger, should I use attached trigger or a standalone trigger? Attached trigger meaning attached to the enemy sub I need trail?

Polak2 08-02-20 03:11 PM

Quote:

For d. the range trigger, should I use attached trigger or a standalone trigger? Attached trigger meaning attached to the enemy sub I need trail?
Good question and I suggest to find out the answer to that and confirm by testing. I answered earlier, but as noted, I just started to study Mission Editor and in no way I consider myself an authority here. Sorry.

p7p8 08-02-20 05:30 PM

1 Attachment(s)
1. Add approach trigger attached to target
- on page 2 select object: player submarine
- on page 3 set duration for long time (ex: 10 hours)
- on page 3 set radius 20 nmi

2. Make second "automatic" trigger
- on page 2 check "Use Doctrine Language"
- on page 3 select "FirstFailedCriteria" for first (approach) trigger

3. Make attached destination trigger for tracked sub
- on page 3 check "Use Doctrine Language"
- on page 3 set radius (ex: 2 nmi)
- on page 4 set NOT CompletedTrigger2

Of course this solution doesn't test sonar detection. Its only for testing range


Check attached file.
Just change extension TEST.txt to TEST.mu


https://youtu.be/z7WyM7bSWkE


All times are GMT -5. The time now is 11:46 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.