OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: illmatic on 08 May 2004, 00:27:43

Title: plane swoop down
Post by: illmatic on 08 May 2004, 00:27:43
is there a way to make a plane from about 90 alt, to go down to like 10 alt and then back up to 90......????
Title: Re:plane swoop down
Post by: Chris Death on 08 May 2004, 01:48:11
There's that command: name_of_plane flyinheight xxx

while xxx is the altitude in meters

But 90 10 90 i wouldn't recommend as i'm quite sure all the
plane would do is: to build a tunnel in the landscape

~S~ CD
Title: Re:plane swoop down
Post by: illmatic on 08 May 2004, 13:33:52
thx, i did the same thing before but it didnt seem to go down but its sorted now, and the pilots dont go down below about 10m anyway.
Title: Re:plane swoop down
Post by: General Barron on 13 May 2004, 18:11:53
You could try giving the plane a little "push" using setvelocity:

plane setvelocity [velocity plane select 0, velocity plane select 1, -10 ]

Try playing around with that last number. This won't make the plane tip its nose downward though, so it may or may not look right. That is why I'd say you do it while the AI is already flying downwards via "flyinheight"