View Full Version : destination trigger with range requirement
Wolfcat
08-02-20, 02:22 AM
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?
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?
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.
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
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.