Home   Help Search Login Register  

Author Topic: High flying planes?  (Read 1064 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
High flying planes?
« on: 07 Sep 2002, 16:01:06 »
Does anyone know how to make a script to make a plane or helicopter fly in any height I choose.(especially planes). If there is one out there I can't find it
Thanks for the help.
"Everyone dies so deal with it and move on"

                                                      ME

DaRkmAn

  • Guest
Re:High flying planes?
« Reply #1 on: 07 Sep 2002, 18:46:44 »
put this in the INT field of your plane or whatever MyHeli FlyInHeight 100 where it says My Heli put your planes name. If this dont work make a script and put in the same code MyHeli FlyInHeight 100. save it as "what ever you want.sqs" in the same folder as the mission your making then, in the planes INT field put "[] exec "what ever you want.sqs" if there is more then one plane you can do it an easy way is make the script like this

plane1 FlyInHeight 100
plane2 FlyInHeight 100
plane3 FlyInHeight 100

Now just make one of the planes call the script, this should work.

ofp..hahha

  • Guest
Re:High flying planes?
« Reply #2 on: 07 Sep 2002, 23:33:17 »
aaahem flyin height doesnt work on planes sorry  :(

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:High flying planes?
« Reply #3 on: 08 Sep 2002, 02:02:17 »
I already know about the Flyinheight command I was wondering if there is a script (I can't script very well) that forces a plane to fly a certain height, say 500 ft.
Thanks for the help so far. ;D

"Everyone dies so deal with it and move on"

                                                      ME

DaRkmAn

  • Guest
Re:High flying planes?
« Reply #4 on: 08 Sep 2002, 23:52:34 »
im not sure about a plane but a helo do what i said in the post above

skid

  • Guest
Re:High flying planes?
« Reply #5 on: 14 Sep 2002, 15:56:08 »
You can make a plane fly higher by using the setpos command and setting the height part higher, the big problem is it won't turn as it needs to drop a wing to do so and the script won't allow this.
 If all you want is to fly in a straight line use this:

_obj    = _this select 0
_height = _this select 1
#loop
_objpos = getpos _obj
_objx   = _objpos select 0
_objy   = _objpos select 1
_objz   = _objpos select 2
_obj setpos [_objx,_objy,_height]
goto "loop"

and call it with this [unitname,500] exec"scriptname.sqs"

I wrote this from memory as I don't have OFP on this PC so it may not be perfect.

red devil

  • Guest
Re:High flying planes?
« Reply #6 on: 22 Sep 2002, 14:27:29 »
What bit of this script needs to be changed to change hieght

red devil

  • Guest
Re:High flying planes?
« Reply #7 on: 22 Sep 2002, 14:27:41 »
What bit of this script needs to be changed to change hieght

DaRkmAn

  • Guest
Re:High flying planes?
« Reply #8 on: 22 Sep 2002, 18:21:06 »
you change the INT field
this [unitname,500] exec"scriptname.sqs"
500 is where the heigth is

Respined

  • Guest
Re:High flying planes?
« Reply #9 on: 15 Dec 2002, 14:15:26 »
you can do this syntax to plane's init field
this flyinheight 300 and your plane keep's the height

Yahoo

  • Guest
Re:High flying planes?
« Reply #10 on: 27 Dec 2002, 02:59:33 »
In resistance + v1.85 patch  you can tell a plane or helicopter to fly at the height you want by Typing in the INIT field of the Plane/Heli

This/Unitname flyinheight whatever


Hope this Helps

Chomps

  • Guest
Re:High flying planes?
« Reply #11 on: 27 Dec 2002, 19:34:42 »
aaahem flyin height doesnt work on planes sorry  :(

With the newest version of Resistance, the flyInHeight works beautifully with planes as well as helicopters.  I had an A-10 fly over a field and accidently clip a tree and explode.