Jump to content
Sign in to follow this  
Melmarkian

How to make a airplane land and unload a group without killing them?

Recommended Posts

Hi,

I am trying to get a plane with a group loaded to land an unload the group. My first try was like this:

Added a plane with the init action["Land" and a waypoint on the airfield with the waypoint "Transport Unload". The result is that they are jumping out nearly midflight and a few of them getting killed.

second try:

Added plane (osprey namd plane0) with the action["land"] and the groupleader of the cargo group with the init:

gr0 = group this; {_x moveInCargo plane0} foreach units gr0; event = plane0 addEventHandler ["landedstopped", {{unassignVehicle _x} forEach units gr0} ]

This way they are never disembarking and the event never gets activated. Maybe i´m doing something wrong with the eventhandler?

Share this post


Link to post
Share on other sites

several ways of doing it, simplest is:

1: simply create the plane and add a transport unload wp on any airport.

create the group and use in leaders init:

{_x assignAsCargo planename; _x moveInCargo planename} foreach units group this

Now with the assignAsCargo the plane "knows" they are in as cargo, and plane will automatically land and unload at the nearest airport near the wp, after all is out plane will taxi and takeoff again.

No need to use the landAt command.

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  

×