Home   Help Search Login Register  

Author Topic: landing a AI plane on any place on the map  (Read 1099 times)

0 Members and 1 Guest are viewing this topic.

patrick01

  • Guest
landing a AI plane on any place on the map
« on: 30 Sep 2006, 11:00:33 »
I tried to figure this out now for a week.  I have a cessna that takes-off from an airfield (not the default airfield). So I want my plane to take off from any place on the map. This script already works so I have AI fly from any place on the map....however
I'm stuck with a script that tells it to land. I know the function 'vehicle land "LAND"' but this will let the plane land on the default airfield not on a place where I want the plane to land.

I think I have to play with the z axis maybe in combination with atan function but I don't know how this trigonometry function or a glideangle of a plane would look like?


Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: landing a AI plane on any place on the map
« Reply #1 on: 30 Sep 2006, 11:14:40 »
Here you will find a tutorial mission with scripts to take off without runaways and land at any place.

MadoAir

NOTE: Mandoair2 link is currently broken, but all you need is already present in mandoair.
NOTE2: Link to Mandoair2 fixed :)

patrick01

  • Guest
Re: landing a AI plane on any place on the map
« Reply #2 on: 01 Oct 2006, 22:48:36 »
Hi Mandoble..it worked! However I need to tweak a little bit with speed and sometimes the plane bump on the ground because the engine was shut off to early. But nevertheless this is better than my attempts.

- Patrick -

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: landing a AI plane on any place on the map
« Reply #3 on: 01 Oct 2006, 23:59:08 »
Yes, as indicated, mandoland.sqs is still beta :whistle: You need to adjust the arguments till reach the desired landing path for each plane type and terrain. Now I'm too busy with Urup campaign 2.0, but I promise to revise that script in the following weeks. Meanwhile, if you improve it, let me know  ;)