Jump to content
Sign in to follow this  

Recommended Posts

Does anyone know how to make cargo soldiers get out of a helicopter if it was empty in the editor and had pilots added to it?

I thought that unassignvehicle would work but it didn't, i'm using project '85 and i'm trying to add p85 pilots to a MH-60 so they can drop off some p85 marines.

Share this post


Link to post
Share on other sites

unAssignVehicle just tells them that vehicle spot isn't theirs anymore. It doesn't tell them it's time to get out. You want doGetOut or commandGetOut for that.

Share this post


Link to post
Share on other sites

thanks i'll look it up on the wiki

EDIT:

I said it completely wrong, how do i get the helicopter to land if you manually add pilots to it? Right now they just hover above the landing zone. I'm guessing it's a pretty common problem

Edited by Militantsausage

Share this post


Link to post
Share on other sites

How do they reach the landing zone? Via waypoint?

Share this post


Link to post
Share on other sites

yep they do, they start with the soldiers in the cargo as a seperate group via moveInCargo, and they go to an invisible helipad, using the transport unload and get out waypoints.

Share this post


Link to post
Share on other sites

Give the soldiers a waypoint right next to the invisible helipad, of type "get out", and synchronise it with the helicopter's "transport unload" waypoint (make sure that transport unload waypoint is attached to the helipad for accurate landing).

Share this post


Link to post
Share on other sites

Wokstation,

I've done that it's easy, my problem is that whenever i have to manually add pilots to an empty chopper they do not land for insertion

Share this post


Link to post
Share on other sites

One workaround that should definitely work is to get rid of the chopper's waypoints and then create a trigger with the following statements:

Condition:

nameOfPilot in nameOfChopper

On Activation:

nameOfPilot move (position nameOfHelipad);nul = [] spawn {waitUntil {unitReady nameOfPilot};nameOfPilot land "LAND"}

NB: You must replace "nameOfPilot," "nameOfChopper" and "nameOfHelipad" with the proper names assigned to these units in your mission. Everything else be exactly as written above.

While that solution should work, I don't fully understand why Transport Unload isn't working for you. My guess is the waypoint isn't being applied to the proper unit, i.e., the spawned pilot. Creating the waypoint through scripting after creating the pilot could very well fix your problem without the need for the above trigger.

Share this post


Link to post
Share on other sites

If you want to know a bunch of other options for this there should be more threads or posts in this section.

In case you don't know about the search function, check out this link:

http://forums.bistudio.com/search.php?f=93

It's the best way to get quick info, example missions and other ideas for mission making.

Here's a quick search for helo landing:

http://forums.bistudio.com/search.php?searchid=985524

Often it can yield nothing, especially when people start threads with useless titles.( Thanks by the way for the good title, it will surely help others in the future searching for this explanation via title.)

Once you get comfortable with using scripts and mission making in general, I'd suggest trying Mando Heli route for precision landing. It's great for AI heli routes.

Enjoy and take care!

Share this post


Link to post
Share on other sites

I do know about the search function, when i searched i came up with nothing useful, i know people expect you to search first.

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  

×