Jump to content
Sign in to follow this  
bamboofats

help with getting plane to land.

Recommended Posts

Currently i used the landat command to get a plane to land at the largest airport in chernarus, but after it lands, it taxis one round and takes off again.

How to i get the plane to land, taxi a short while off the runway and stop moving,but the pilot stays inside.

Share this post


Link to post
Share on other sites

Only way seem to be to set the fuel of the aircraft to zero.

On the last waypoint(do mind this to be after the "land" waypoint)

Either

OnAct: MyAircraft setFuel 0;

or

OnAct: this setFuel 0;

doStop, and switching engine off doesn't seem to have any affect at all.

Share this post


Link to post
Share on other sites

Ok, got the zero fuel thing. But exactly how do you command the plane to land, detect if it has landed, and immobilise it after it has moved to a specific spot in the airfield?

Is there a "land" waypoint and will the plane respond to waypoints after it is on the ground, like taxing to a specific spot.

Share this post


Link to post
Share on other sites

You can not move(taxi) planes around the airport, this because the complete radius for aircrafts are quite far, like 50 meters or so.

There's a topic regarding this on the forums if you search, might have a solution for you there.

For the land part.

Put a waypoint near or on the airfield.

onAct: MyPlane land "LAND"

for some reason the aircraft must have a name, using "this" in the activation doesn't seem to work.

For the event handler, in the init of the aircraft put

this addEventHandler ["LandedStopped",{(_this select 0) setFuel 0}]

Please disregard what I said about the last waypoint in my above post, its not needed with this eventhandler.

Edited by Taurus

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×