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

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-10-06, 09:06 PM   #1
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default cant seem to get scripting to work

test case:

1- controllable platform A (controlled by ai), scripted

1- live player, platform B

made a event destination trigger for platform A, which is triggered at spawn, to make changes in depth, speed and course - but no workie.

also tried my hand at doctrine languages for platform A to use active sonar to ping platform B. but im getting nothing on active sonar intercept.

It all seems straight forward to me, but its not working :hmm:

I would really appreciate some tips, pointers, advice, etc


thanks
suBB is offline   Reply With Quote
Old 05-10-06, 11:26 PM   #2
MaHuJa
Sonar Guy
 
Join Date: Jan 2002
Location: 59.96156N 11.02255E
Posts: 385
Downloads: 3
Uploads: 0
Default

The very first field, applies to or whatever, means that it will only work when the player is playing this platform. Sounds like that's what you've run afoul of.
__________________

Teaching DW newbies how to climb the food chain.
MaHuJa is offline   Reply With Quote
Old 05-10-06, 11:27 PM   #3
MaHuJa
Sonar Guy
 
Join Date: Jan 2002
Location: 59.96156N 11.02255E
Posts: 385
Downloads: 3
Uploads: 0
Default

Also, make sure the script doesn't have the same name as the trigger, or anything else.
__________________

Teaching DW newbies how to climb the food chain.
MaHuJa is offline   Reply With Quote
Old 05-10-06, 11:42 PM   #4
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by MaHuJa
Also, make sure the script doesn't have the same name as the trigger, or anything else.
it doesnt.. there just seems to be something im not taking notice of.. for example i put an event explosion in scripting to see if the sequence was working.. and it was.. but platfrom A assigned as controllable - but driven by AI - eventho explosions were going off.. there was nothing in sequencial order.. in this case..

1. go 9 kts

2. change course to 327

3. change depth to 1600ft

4.. cause explosions

5.. go 0 kts.

i assigned anywhere to 3000ms to 6000ms duration for each one so im expecting to see scripting follow suite in sequence by events

i mean, these event should happen in sequence shouldnt they?

ill check for dupe names again..
suBB is offline   Reply With Quote
Old 05-10-06, 11:57 PM   #5
MaHuJa
Sonar Guy
 
Join Date: Jan 2002
Location: 59.96156N 11.02255E
Posts: 385
Downloads: 3
Uploads: 0
Default

If the explosions from #4 is going off, the script should indeed run properly. Then it's not a problem of duplicate names or anything like that.

However, the whole script happens pretty much at the same time. Effectively, the script you put up should do this:

effect explosion + maneuver speed 0 course 327 depth 1600
__________________

Teaching DW newbies how to climb the food chain.
MaHuJa is offline   Reply With Quote
Old 05-11-06, 01:12 AM   #6
suBB
Chief
 
Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by MaHuJa
If the explosions from #4 is going off, the script should indeed run properly. Then it's not a problem of duplicate names or anything like that.

However, the whole script happens pretty much at the same time. Effectively, the script you put up should do this:

effect explosion + maneuver speed 0 course 327 depth 1600


aaaaahhh HA!!

i think im getting it... what i was trying to do is have the sub cruise 9 kts while changing depth.. but once depth is reached.. then go 0 kts..

So the 9 kts cruise is where time duration comes in i guess..(ill go try this)

BUT actually.. when scripted for 0 kts.. it goes 3 kts - being the cruise speed set for object..


coolies.. thanks
suBB 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 07:45 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.