SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
Thread Tools | Search this Thread | Display Modes |
01-13-09, 12:20 PM | #1 |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
Getting Kill trigger to work
I've tried for several hours now to get a kill trigger to work.
To make a simple scenario as an example, lets say there is a a 688i and a Kilo. The Kilo is doing 12kts and is just 1nm away from the 688i, which is doing 3kts. The solution is easy...K 48s in the water and in a few minutes BOOM! kilo dead. But it won't work as a trigger, not will it come up as an achieved goal. How do I make this work? I've read the manual and even studied other custom missions I have downloaded. It's frustrating. jason
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro |
01-13-09, 01:12 PM | #2 |
Admiral
Join Date: Apr 2005
Posts: 2,320
Downloads: 0
Uploads: 0
|
You want the 688 to attack the kilo automatically ? If yes, then you could use a script.
Otherwise you can usa a destination trigger, so that when the 688i comes into a predefined position, the trigger activates the script that enables the 688 to attack the kilo. |
01-13-09, 01:44 PM | #3 |
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
There are at least two methods of using kill triggers.
The easiest is using an attached trigger, on page 1 of the trigger you'll have the option to make it a Kill trigger (I think it defaults to approach or destination for an attached trigger, so look for the drop down menu with one of those displayed.). On page 2 you'll have the option to set the amount of damage needed to fire the trigger. You can also use doctrine language. To do this, create a standalone trigger and set it to automatic. Activate the doctrine language button, and select platform damage as the doctrine to use. There's no limit to now many doctrine tests the trigger can run, so you can test for as many kills/damages as you want with a single trigger.
__________________
|
01-13-09, 04:51 PM | #4 |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
Hi
The 688 is a player controlled sub. The kilo is AI. I tried using the attached trigger, attaching it to the 688, "kill" option, 100% damage. But how do you associate the kill with the kilo? I'll have a go at the doctrine method also.
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro |
01-13-09, 05:20 PM | #5 | |
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
Quote:
__________________
|
|
01-13-09, 07:19 PM | #6 |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
No, the kill is done by the 688...but he manual says I should attach the trigger to the 688.
So, trigger is attached to 688, and designated "kill". On the second page of the trigger, I have singled out the KILO platform. I've sunk this repeatedly to test the trigger but it doesn't work.
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro Last edited by jason210; 01-13-09 at 08:02 PM. |
01-14-09, 12:09 AM | #7 |
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
Well there is your problem. Use a trigger attached to the platform you want to capture the killing of.
edit: good catch on the manual error.
__________________
|
01-14-09, 06:13 AM | #8 | |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
Quote:
I have made a liferaft spawn when the kilo is destroyed. Now I want my 688 to approach the liferaft and when it has fullfilled certain criteria for speed, depth, and duration, I want the liferaft to disappear, as if the 688 has picked up survivors. What do I attach the trigger to for this, and what do I fill in on the first and second pages?
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro |
|
01-14-09, 09:20 AM | #9 | ||
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
Quote:
__________________
|
||
01-14-09, 12:50 PM | #10 |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
Thanks.
I tried had already tried what you suggested but it doesn't work. May be you can take a look when you have the time? http://www.students.asperokompetens.se/misc/test.zip Thanks
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro |
01-14-09, 03:45 PM | #11 | ||
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
No problem.
First, let me teach you a little secret. The debrief file can be used to identify what triggers aren't firing, this lets you know if the problem is with a trigger or a script. Here is what your debrief file looks like: Quote:
This is the debrief from the working mission file, after making the change: Quote:
__________________
|
||
01-14-09, 05:11 PM | #12 |
Sonar Guy
Join Date: Sep 2002
Location: Sweden / UK
Posts: 386
Downloads: 33
Uploads: 0
|
Thanks very much!
I never thought about the trigger counting as an object.
__________________
Intel Core i9-9900K @ 3.6 GHz nVidia GeForce RTX 2070 32GB memory Windows 10 Pro |
01-15-09, 01:30 AM | #13 |
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
You're welcome.
I don't blame you, that's sort of thing people don't think of until they get it wrong once.
__________________
|
|
|