View Full Version : How do I get an AI sub to stay at 0 kts?
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.
Create a current box around it with the current set to 0 knots. For ships you will need to do the same for wind.
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.
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.
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'd suggest using some kind of trigger that keeps firing like a giant destination goal.
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.
Everything set exactly as you say. Maybe it's because I'm using LWAMI? I pm'd my email for you.
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.
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!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.