Jump to content
Sign in to follow this  
Brandy

How to make heli proceed to next wp if player is onboard

Recommended Posts

I've a chopper waiting, I want it to fly to the next waypoint when player gets in. However, I don't want the chopper to fly up just right after the mission starts and then land and wait - I want it to start its engine and wait. How to make this happen?

Edited by Brandy

Share this post


Link to post
Share on other sites

For the first question of waiting until the player is in before moving try this:

set your chopper down in the editor and give it a name (i.e helicopter), then place a "MOVE" waypoint on top of the helo, and do the same for a "LOAD" waypoint. Then place an invisable helipad (in the empty ojects drop down menu) where you want the chopper to take you, place anther waypoint of "UNLOAD" or "TRANSPORT UNLOAD".

give your player a name (i.e. unit1)

right now in the condition line of the load waypoint of the helo place this code:

((!alive unit1) || (unit1 in helicopter))

first give your chopper a name (in the name field when placing an object) then put this in the init line: yourChopperName engineOn true;

that should make the helo start its engine.

Share this post


Link to post
Share on other sites

you can also use "this stop true;" in the init field of the chopper and then trigger "chopperName stop false;" to execute when you get in it.

Share this post


Link to post
Share on other sites

you might also need to force the chopper to land at the "ULOAD" waypoint, put this in the onActivation field: helicopterName land "LAND"

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  

×