SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   DW Mission Designers' Forum (https://www.subsim.com/radioroom/forumdisplay.php?f=191)
-   -   Player and AI sub co-operation (https://www.subsim.com/radioroom/showthread.php?t=136847)

Karsta 05-15-08 06:09 PM

Player and AI sub co-operation
 
I was wondering if this could be done: I'd like one side's AI subs to surface at certain predetermined times in order to share their link data. Of course it would be nice if AI commander could judge the situation and not surface during a battle or when near hostile surface units. Main reason for this is to make it look like there's at least some co-operation between player and AI subs.

Thanks in advance.

Molon Labe 05-16-08 10:56 AM

When the times are predetermined it's pretty easy. Just use an automatic trigger to mark the time and tie it to a script that sets the depth for a couple minutes. As a precaution, you may also want to have doctrine language tied to the trigger that tests for weapons in the water, or any other conditions under which you think the AI subs should not link.

Hawk66 05-19-08 12:21 PM

Quote:

Originally Posted by Karsta
I was wondering if this could be done: I'd like one side's AI subs to surface at certain predetermined times in order to share their link data

Did you check out, if you really need this? I think, at least LWAMI, has a built in doctrine that let the sub go to comms, if there's no (detected) enemy in the area.

Karsta 05-20-08 07:12 PM

Thanks Molon Labe. Getting subs to comms depth at certain intervals proved rather easy as you said. Problem is that subs don't necessary link even when in surface. I tried it few times (with Victor III) and sometimes it worked and sometimes not. Any idea what could cause this?

Also I didn't find any doctrine command that allows testing for weapons in water. I just recently started playing with mission editor, so it might be that I'm missing something completely obvious, but please bear with me.

Quote:

Originally Posted by Hawk66
I think, at least LWAMI, has a built in doctrine that let the sub go to comms, if there's no (detected) enemy in the area.

I'm not sure if that is enough. My reasoning is that they should go to comms even when in contact so they can direct other subs to target. Scenario is about Russian subs operating without any surface support, so they must go to comms at the same time.

Molon Labe 05-20-08 07:23 PM

If you're trying to get AI to link to each other, they are actually on the link persisetently, even when underwater. Yeah, I know. I don't know what would cause them not to link normally to a human player though, except if they're not shallow enough. It generally works (I've definitely done it successfully with AI 688Is and Delta IVs).

You can find the weapons in the mission editor under the "Civilian" category, in triggers such as approach triggers.


All times are GMT -5. The time now is 01:47 AM.

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