View Full Version : 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 :)
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.
Also, make sure the script doesn't have the same name as the trigger, or anything else.
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..
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
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 :rock:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.