OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: patrick01 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?
-
Here you will find a tutorial mission with scripts to take off without runaways and land at any place.
MadoAir (http://www.ofpec.com/forum/index.php?topic=27621.0)
NOTE: Mandoair2 link is currently broken, but all you need is already present in mandoair.
NOTE2: Link to Mandoair2 fixed :)
-
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 -
-
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 ;)