Log in

View Full Version : How do I get an AI sub to stay at 0 kts?


Pillar
11-18-09, 01:49 PM
I'm trying to get an AI sub to start and remain at a stop (unless they get a torp on their tail or something.) So far everything I've tried has failed, with setting the speed and waypoint speeds to 0 not working at all.

To be
11-19-09, 09:56 PM
Create a current box around it with the current set to 0 knots. For ships you will need to do the same for wind.

Pillar
11-21-09, 10:12 AM
No joy, thanks anyway though. The problem is they are setting a speed on their own. They start the scenario at 0 kts and then accelerate to 6, even with the current set to zero.

suBB
11-21-09, 09:53 PM
No joy, thanks anyway though. The problem is they are setting a speed on their own. They start the scenario at 0 kts and then accelerate to 6, even with the current set to zero.

you need to run a script to tell the sub to go to 0 kts.

here you go..

1. make script: platform speed 0 kts

2.. make event auto trigger named set AI sub 0 kts

3.. apply script to event auto trigger..

****

result is as soon as the scenario is loaded, the trigger is fired, the sub should set its speed to 0 kts.

Pillar
11-22-09, 02:48 PM
The script tested ok, and the trigger works and triggers the script right as soon as the scenario loads. The subs still go ahead and set speed according to whatever tactic they have been given. :(

It works fine for any speed >0

NFunky
11-22-09, 06:23 PM
I'd suggest using some kind of trigger that keeps firing like a giant destination goal.

suBB
11-23-09, 12:06 AM
The script tested ok, and the trigger works and triggers the script right as soon as the scenario loads. The subs still go ahead and set speed according to whatever tactic they have been given. :(

It works fine for any speed >0

I think you are still doing something wrong. Make sure that your script is "change speed of AI platform to 0, leave duration blank." your script and triggers are "apply to all", your trigger is "event automatic" and at the end of your trigger you select "run script" that you made to set the speed of the AI sub.

If you PM me your email, I'll send you a working example.

Pillar
11-23-09, 05:50 PM
Everything set exactly as you say. Maybe it's because I'm using LWAMI? I pm'd my email for you.

suBB
11-24-09, 05:54 AM
Everything set exactly as you say. Maybe it's because I'm using LWAMI? I pm'd my email for you.

ok.. I sent you the file. monitor the AI sub (akula). The sub starts at 5 kts and reduces its speed down to 0 kts. to see it actually achieve 0 kts, you need to use time compression.

Pillar
11-24-09, 08:57 PM
Thanks! Your file helped, I found the only difference between yours and mine was the starting speed. I had my subs set to 0 as their initial speed. After setting it higher they now will slow to 0 at start. Seems you can't have them start with 0 or it won't work!