View Single Post
Old 09-23-16, 12:34 AM   #1
rentacow
Machinist's Mate
 
Join Date: Sep 2014
Location: Onakushcloud
Posts: 125
Downloads: 56
Uploads: 0
Default Help scripting a sequence of events. (Solved!)

Hello everyone! I have good news and bad. The good news is that I'm working on a few new missions. The bad news is that the editor has shot down almost every good idea I've tried to implement so far. Things like having AI vessels dropping cargo overboard when triggered by the player, are utterly impossible as far as I can tell. Further, scripting sequences of events is a complete nightmare!

So here is what I'm trying to do:
Stage 1:
Ship A (player) approaches Ship B (AI)
Ship B runs away at flank speed at the first sight of Ship A
Stage 2:
After a few minutes Ship B has engine trouble and comes to a stop
Ship A receives orders to position a helo within a few hundred yards of Ship B for 5 to 10 minutes.
Stage 3:
Once the player does this, Ship A gets orders to recover the helo.

Right now I have the key units down and some triggers and scripts for stage 1 and 2 only. The way I have tried to do it is causing the game to crash just a few seconds after stage 1

Here is the mission file so you can see for yourself. Let the mission run for about 10 minutes, it should crash right after the first radio message is received. Using truth, watch the behavior of the small neutral boat also.

EDIT: Fixed! https://www.dropbox.com/s/5y3pss27jn...rt%201.mu?dl=0

Last edited by rentacow; 09-23-16 at 12:28 PM.
rentacow is offline   Reply With Quote