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 > DW Mod Workshop > DW Mission Designers' Forum
Forget password? Reset here

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-04-06, 04:58 AM   #1
soundken
Watch
 
Join Date: Dec 2005
Location: Las Vegas
Posts: 24
Downloads: 0
Uploads: 0
Default need help ai script

im having a little trouble with the ai script/trigger system

i am trying to create mp missions where the diffrent available platforms will still function properly (for the ai anyway) and still be kinda random in there spawn point / approach vector / tactic

what i have so far, ive found that just using random start box's in cordination with random search boxes does move the unit (this case sub) around a given area and create enough randomness for mp and sp play

the problem i have is getting the ai to attack. if i set on page one to attack and choose the main target (this case lead of 4 ship convoy) then the ai does close and will initiate but only on that one ship and at extreamly close range. the ai also tends to ignore any escorts (other player controled) only somtimes engaging but again only torpedo and only close range

ive been trying to write a script but cant seem to get it to work basicly what i want is this:

if {Red sub} detects {any object blue) with (any) then (attack) with (best weapon)

in this case i want (best wepon) to be missles at long range than closing to torpedo,

question. when i choose "then" in the script editor it ends the script ? shouldnt there be a continuation to the line ? anyone any luck with this or does it need to be attached to a waypoint?
soundken is offline   Reply With Quote
 


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 01:06 PM.


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.