DecimusAquila 0 Posted March 3, 2007 Please, I donot know how to make AI controlled harrier do VTOL "with and without runway use". I have tried to use some commands like flyInheight and even added a helipad, but it still does not work. Please can someone help me out here. I think I have missed something. Thankyou in advance. Share this post Link to post Share on other sites
the unknown 0 Posted March 3, 2007 No clue if this works but give it a try. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ChopperOne action ["AUTOHOVER", ChopperOne] <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">PlaneOne action ["LANDGEAR", PlaneOne] Share this post Link to post Share on other sites
DecimusAquila 0 Posted March 3, 2007 No clue if this works but give it a try.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ChopperOne action ["AUTOHOVER", ChopperOne] <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">PlaneOne action ["LANDGEAR", PlaneOne] Thankyou The Unknown for your reply. I tried it...I put the harrier on the field and not close at all to a runway "used your commands", the plane started moving on grass only but did not takeoff in a vertical takeoff position. It did not work. If anyone do have a clue on how to do this, please do post here. meanwhile I will keep on trying. If I find out, I will write it. Share this post Link to post Share on other sites
KaRRiLLioN 0 Posted March 3, 2007 AI in fixed-wing aircraft need a runway in order to take off, even with SVTOL. If you place one nowhere near a runway, sometimes they'll try to take off, or may drive off to the nearest runway. To get around that, I've always had to use scripts, even though it's not as pretty and it's hard to do dynamically unless you have a script monitoring an AI. To accomplish that, you'd need to exec a script on each AI that monitors if their typeOf vehicle is a plane. OR Use a getIn eventhandler that checks if the driver ?!isPlayer, i.e. if the driver is not a player. This method is probably cleaner, actually. If not a player, then have the getin.sqs use a fake VTOL, whereby you setVelocity on the plane to hover, move up and then gain speed as it gains altitude. Once it gains sufficient speed, then exit the script and pray the AI takes over as it should. I've written such a script in the past, but I have no idea where it is. It's not too hard, just copy/paste some trig to calculate direction and speed and then mess around with some values. I'm sure someone already has a similar one somewhere. Share this post Link to post Share on other sites
DecimusAquila 0 Posted March 3, 2007 Thankyou for the tips KaRRiLLioN. I guess I will have to figure out useing the event handler for VTOL. Share this post Link to post Share on other sites