SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 11-18-09, 01:49 PM   #1
Pillar
Electrician's Mate
 
Join Date: Sep 2002
Posts: 138
Downloads: 5
Uploads: 0
Default 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.
Pillar is offline   Reply With Quote
Old 11-19-09, 09:56 PM   #2
To be
Electrician's Mate
 
Join Date: Feb 2007
Posts: 140
Downloads: 8
Uploads: 0
Default

Create a current box around it with the current set to 0 knots. For ships you will need to do the same for wind.
To be is offline   Reply With Quote
Old 11-21-09, 10:12 AM   #3
Pillar
Electrician's Mate
 
Join Date: Sep 2002
Posts: 138
Downloads: 5
Uploads: 0
Default

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.
Pillar is offline   Reply With Quote
Old 11-21-09, 09:53 PM   #4
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by Pillar View Post
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.
suBB is offline   Reply With Quote
Old 11-22-09, 02:48 PM   #5
Pillar
Electrician's Mate
 
Join Date: Sep 2002
Posts: 138
Downloads: 5
Uploads: 0
Default

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
Pillar is offline   Reply With Quote
Old 11-22-09, 06:23 PM   #6
NFunky
Machinist's Mate
 
Join Date: Dec 2007
Posts: 127
Downloads: 3
Uploads: 0
Default

I'd suggest using some kind of trigger that keeps firing like a giant destination goal.
NFunky is offline   Reply With Quote
Old 11-23-09, 12:06 AM   #7
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by Pillar View Post
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.
suBB is offline   Reply With Quote
Old 11-23-09, 05:50 PM   #8
Pillar
Electrician's Mate
 
Join Date: Sep 2002
Posts: 138
Downloads: 5
Uploads: 0
Default

Everything set exactly as you say. Maybe it's because I'm using LWAMI? I pm'd my email for you.
Pillar is offline   Reply With Quote
Old 11-24-09, 05:54 AM   #9
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by Pillar View Post
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.
suBB is offline   Reply With Quote
Old 11-24-09, 08:57 PM   #10
Pillar
Electrician's Mate
 
Join Date: Sep 2002
Posts: 138
Downloads: 5
Uploads: 0
Default

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!
Pillar is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:28 PM.


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