Jump to content
Sign in to follow this  
Lifter

To get an A10 to stay put.

Recommended Posts

I'm trying to make an AI A10 to stay put (but with the pilot in it), and make him fly away when a trigger is triggered.

How do I do that?

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">A10name setfuel 0

will remove the fuel of an A10 named " A10name ", preventing it to move

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">A10name setfuel 1

will put back the fuel of an A10 named " A10name ", allowing it again to move

Share this post


Link to post
Share on other sites

Mission Editing questions do not belong in this forum.

Moving to ME&S.

Share this post


Link to post
Share on other sites

If you want it to stay put in the air you could try:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop

~0.1

a10 setPos [getPos a10 select 0, a10 getPos select 1,200]

if not okaytogo then {goto"loop"}

where a10 is the name you gave to the plane and okaytogo is a global variable that you intialise as false but set to true when you want the plane to move.

You might need to chose fixed X & Y coordinates to keep the plane stationary.

I have not tested this with a plane but it works fine for a chopper.

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  

×