SUBSIM Radio Room Forums
Sailor Steve supports Subsim through his many Amazon purchases, you can too!
Want to support Subsim and make Amazon pay for it? Click here to start any Amazon shopping.


SUBSIM: The Web's #1 BBS for all submarine and naval simulations!

Go Back   SUBSIM Radio Room Forums > Sonalysts Combat Sims > Dangerous Waters > DW Mission Designers' Forum
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-04-2006, 03: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
 

Thread Tools
Display Modes

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 10:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 1997- 2013 Subsim