Jump to content
calebfg2

Plane will not wait for units to get in

Recommended Posts

I'm using the RHS C-130 to transport players for a mission.

 

I have it sitting on the runway. I do not want it to move until everyone is in. Here's what I've tried.

 

Created Load waypoint

Created get in waypoint for players

sync'd the two

 

No matter what I try, he sits for 30 seconds and then takes off.

 

I've also tried a trigger. 

Created a hold waypoint

then a move waypoint

set the trigger to switch and radio alpha activation sync'd to the hold waypoint

plane takes off after 30 seconds

 

Any ideas?

Share this post


Link to post
Share on other sites

Set its fuel to 0 until everyone is in....

 

I've seen that suggested elsewhere but I don't know how to code it.

Share this post


Link to post
Share on other sites

Give the plane a name in the editor eg hercules

 

In the planes init:

this setFuel 0

Do what you did before:

Created Load waypoint
Created get in waypoint for players
sync'd the two

In the On Act field of the Load waypoint:

hercules setFuel 1

Share this post


Link to post
Share on other sites

Alternatively, if you want the helicopter with its engine running while waiting, instead of

this setFuel 0

you can use:

this flyInHeight 0;

When all units are onboard:

this flyInHeight 100; // or whatever altitude in meters you wish.

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

×