Home   Help Search Login Register  

Author Topic: setting altitudes for aircraft  (Read 679 times)

0 Members and 2 Guests are viewing this topic.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
setting altitudes for aircraft
« on: 08 Oct 2004, 01:10:04 »
Can someone tell me if there is a tutorial for making aircraft to fly at the proper altitude for parachut drops. I have tried a couple from other sites but it never seems to work. Any help in this matter would be appreciated....thanks!


Trash Can Man

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:setting altitudes for aircraft
« Reply #1 on: 08 Oct 2004, 01:22:29 »
I have a vague memory that there some tricks to this because the standard flyInHeight command doesn't work as you would expect.   Use the forum search function, this has come up before although not recently.    

Tell us which plane and which parachute script you are using.   It might make a difference.
Plenty of reviewed ArmA missions for you to play

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:setting altitudes for aircraft
« Reply #2 on: 08 Oct 2004, 01:50:27 »
I think the problem is not the flyinheight command but the aircraft. I had the same problem but I changed the aircraft and it worked fine

Kammak

  • Guest
Re:setting altitudes for aircraft
« Reply #3 on: 08 Oct 2004, 04:24:58 »
I have the best results by putting a trigger in front of the a/c with the flyInHeight command there.

The only issue I'm aware of, is that if the flying alt is too high, the game engine doesn't realize the a/c has reached a waypoint, as it seems to go by slant range instead of ground distance.

So if you need an a/c to hit waypoints after setting a high altitute, you must lower the altitude before the next waypoint is encountered.  Or just use a script to control the a/c, where you compute the true horizontal distance between a/c and reference location, instead of the slant range.

I've got a GP a/c script that allows you specify an array of locations it should fly through, and the altitude to fly at.  It is used in place of waypoints.  If you need it let me know and I'll post it.


Kammak

  • Guest
Re:setting altitudes for aircraft
« Reply #4 on: 08 Oct 2004, 04:28:15 »
Also, if you are not interested in writing your own scripts, check out my general purpose helo script in the editor's depot "pending" section.  It includes a parameter that will make the troops parachute, and you can specify whatever altitude you want for the drop.  I've used it with both regular para drops and HALO drops, with an altitude > 1000 - no problems.


renegade798

  • Guest
Re:setting altitudes for aircraft
« Reply #5 on: 08 Oct 2004, 23:26:34 »
I have the same problem as trash can man, I'd like to know the salution, cause it's annoying.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:setting altitudes for aircraft
« Reply #6 on: 09 Oct 2004, 02:02:29 »
Hey, I wrote a function that will force an aircraft to go to whatever altitude you want (it must be looped in a script - the function header explains how).  Anyway, the function is NOEAng (Nap OF Earth).  You can get the function bundled with my Super Guided Missile Script which can be found in the script library in the Editor Depot.  If you look at the script(s) in the example mission you can see an example of how to implement the function. Basically if figures out what angle is required to get an aircraft to the desired altitude over a given distance - it takes the ground slope over the distance also into acount.  You can then use my VeltoAng function (also in the Super Guided Missile script/demo) to find the velocity values needed to get the craft going up at the angel.  Then use the setVelocity command.  You can put these in a loop that repeats until the paradrop is complete, then the craft will decend back to whatever the original flyinAltitude was before the script started.
« Last Edit: 09 Oct 2004, 03:12:34 by Raptorsaurus »

Homefry31464

  • Guest
Re:setting altitudes for aircraft
« Reply #7 on: 09 Oct 2004, 06:02:48 »
FlyInHeight doesn't work in the init field... I'll go back in my hole now...

Kammak

  • Guest
Re:setting altitudes for aircraft
« Reply #8 on: 11 Oct 2004, 22:11:48 »
Trash Can Man - I got your PM, here is the script with a demo mission and a readme.

Hope it does what you need!

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re:setting altitudes for aircraft
« Reply #9 on: 17 Oct 2004, 22:37:37 »
Trash Can Man - I got your PM, here is the script with a demo mission and a readme.

Hope it does what you need!


Thanks dude! I'll take a look at it and give it a go!  Cheer!


Regards,
Trash Can Man