Jump to content
Sign in to follow this  
DDRDave

Really Simple Script Question

Recommended Posts

Ok, I'm new to scripting, so bear with me...

I'm sure there must be a way to do this, because I found a script in the wiki (here) but can't seem to figure out how to apply it.

Thus ultimate goal is to have an airplane start the game, engine off. Totally stationary.

Otherwise, the paratroopers won't mount. Even if I give the plane a halt command, the paratroopers don't wanna board. They do board however, Of I set the fuel of the plane to zero, so no engine.

I just need the plane to start with the engine off and wait for a move command to start up and take off.

Also, while I'm on the subject, how do you make troops start inside a vehicle? I know how to tell them to board as soon as the mission starts using scripts, but can't figure out how to make them start 'in cargo'

Thanks!!

DDRD

Share this post


Link to post
Share on other sites

in waypoint set a condition that has to be true for the plane to move

remove true and replace with: plane_ok_to_move

1st. in trigger

setup whatever conditions you want to allow plane to move

so in a trigger's activation field - plane_ok_to_move=true

for paratroopers:

for each group - {_x moveincargo name_of_plane,_x assignascargo name_of_plane}foreach units group_name

Share this post


Link to post
Share on other sites

You have to give a name to a chopper (Name_Chopper) and put inside the init field of each para:

this moveInCargo Name_Chopper;

If para are in the same group put this in the init field of the team leader:

{_x moveincargo Name_Chopper} foreach units group this;

Posted together :)

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  

×