Lifter 0 Posted January 26, 2006 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
sanctuary 19 Posted January 26, 2006 <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
Placebo 28 Posted January 27, 2006 Mission Editing questions do not belong in this forum. Moving to ME&S. Share this post Link to post Share on other sites
thobson 38 Posted January 27, 2006 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
Lifter 0 Posted January 27, 2006 Nono, I want him to stay on the ground. Share this post Link to post Share on other sites
thobson 38 Posted January 27, 2006 In that case Sanctuary's solution should do it Share this post Link to post Share on other sites