OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dragonshinobi03 on 12 Nov 2003, 04:17:45

Title: helicopter fly at certain height in insertion
Post by: dragonshinobi03 on 12 Nov 2003, 04:17:45
Hi! :) I was wondering. Is there a way to make a helo start at height about 15? I tried setting the special to flying and in the init of the helo I typed in this flyinheight 15 but this makes the helo starts flying at around 60 and then comes down to 15. I want like the helo to fly in height 15 in air.Sorry if this don't make sense :-\.
Title: Re:helicopter fly at certain height in insertion
Post by: O Neil on 12 Nov 2003, 09:57:32
Hey

Quote
Sorry if this don't make sense

Well, is this what you mean:

            You want the helicopter to start at 15, then fly off ?
                                          NOT
            The heli flys down to 15m, then flys off.

If the first one then put this in the init field of the heli:

               This setpos [(getpos this select 0),(getpos this select 1), 15]

O'Neil ;)
Title: Re:helicopter fly at certain height in insertion
Post by: dragonshinobi03 on 13 Nov 2003, 00:52:12
HEY! WHAT DO YOU KNOW IT WORK! THANKS FOR YOUR HELP O"Neil