Hey gang.
I'm messing around with the new C-47 addon and I've found that the AI always flies too fast and stretches out the line of parachutes, which makes it hard to drop guys anywhere. So, I figured I'd write a little script that forces the plane to fly slower.
Here's question one: I've forced the plane down to the speed I want with a looped "setvelocity" command. I don't know how to make the command account for the direction the plane is travelling in.
If I add velocity to X, for example, the velocity will force the plane North, regardless of its heading. So if I'm on a heading of 90 degrees, the plane will slide to the left.
So how do I script it so that only the plane's forward velocity is affected?
Question two: this one is a lot simpler, but I can't figure it out. I have this line
if (speed c47 > 120) then (goto "speed")
which obviously holds the speed to where I want it. This part works. Now, I want to break this loop with something like this:
if (not (guy1 in c47)) then (goto "exit")
obviously this will end the script when all the paratroopers (in this case only one) are out of the plane. Hopefully the plane should speed up and go on its merry way at this point.
Problem is that my code doesn't work. Can someone show me the right syntax/right way to do that?
Thx in advance.
EDIT: I just realized that my if/then lines probably won't work anyway. So, how then do I do this properly