Jump to content
Sign in to follow this  
william516

ARMA 2 Arrowhead AI Aircraft AI Help

Recommended Posts

I have searched the forum forward and back and tried most of the solutions but I can not for the life of me get aircraft (fixed wing) to taxi correctly on the airport at the North end of Takistan map. Marked as Military base on map.

Basically what happens is I can get a C-130j to land at the base but about 1/4 of the way down the runway it will take a sharp turn right and try and turn off and into the grass, then it will hit a landing light and bounce until it is eventually destroyed. If i attempt to have a c130j take off from that same field the plane will not taxi at all as if it is stuck. You will see it move about 5ft in game length and stop and repeat. It almost appears that the runways are not made correctly on this map. I have not tried any smaller planes yet. Has anyone else had this issue or managed to get an aircraft to taxi correctly after landing.

This is simply for a mission im working on and this will be going on in the background AI doing all the work, just to add life to the world and base. I'm basically trying to get the c130j to land.....taxi to tarmac.....shut down engines.......open doors........restart engines........taxi to runway......takeoff and repeat (cycle) over and over again. Again just to add life.

I just cant get the aircraft to taxi at all once it touches down. No matter where the waypoint is the aircraft will tun right after landing and off the runway.

I'm requesting some help here, most of the post i read have delt with arma2, im wondering if the maps are just wrong.

plane name is herc1

I have waypoints set far out with flyinheight commands to keep it from hitting the mountains

then a waypoint near the south edge of the runway with the command to land

another waypoint with a move command to the edge of the runway with a setfuel command to 0

a trigger with setfuel command to 100 after a period of time

a move command with flyinheight to get over the mountains

sorry i dont have the exact commands, im not able to pull it up right now so its all of memory.

Thanks for any help you can give

Bill

Share this post


Link to post
Share on other sites

Which version of the land command are you using?

land (helicopter only per the command reference), although I have seen this used with planes,

landAt,

or the action land?

what game version are you using?

Edited by panther42

Share this post


Link to post
Share on other sites

The runways are have set patterns that waypoints will NOT make a difference. Only one command works. GET IN. after that, no matter what waypoint is next he will take off. he will taxi and fly. any ground waypoints get achieved before he gets 10 feet down the runway. Once in the air waypoints work. The reason for this is because there are too many variables that can screw up. Without the auto taxi, aircraft will be all over the place mostly crashing. How many times have your infantry walked through water losing weapons, or cars getting stuck or not driving through things. Now take that and multiply that by a few times for aircraft. They need a specific speed and specific points in order to actually take off correctly, and without taxi, waypoints attempting taxi will still not look ver realistic. Im just guessing all these.

Once he lands, it's similar. He will ignore all waypoints, he will land, taxi to a certain point (different on each map) then stop, If that stop point isn't automatic, he will take off again. So all you can do is put a "get out" waypoint on the airstrip anywhere and he will get out where he wants to, then run to the "get out" waypoint. then the next waypoint.

You can't have anything near taxi ways. Using utes as an example, you have to have empty aircraft pushed all the way to the back of the tarmac. On smaller aircraft (than a c130) just picture an entire other aircraft fitting in the space between wing tips to objects to the side. It's a pain in the ass. If you want an active airstrip, all flying aircraft neeed to be placed in order on the tarmac unless you have alot of room.

When it moves a few feet and stops, that means something is too close. If its super close it will stop. the further away the object is the faster and farther it will move during those small stops and will eventually clear the object (unlesss it's tooooo close) then it will stop. So it jams up the runway. so give it time to move before another aircraft taxi.

If your aircraft makes turns, that means he passed the point in which it can take off, usually turning towards the taxi way to get back to the begining of the runway. When they land, they want out, so they turn to get to the taxi way to get out. Depending on which map youre on he will leave it in different places.

This has been a headache for me just like you. Iv'e been trying to do the same things you want. Trial and error over and over again. What i suggest is to start with what you want accomplished. If it the c130 thing, start with only that and waypoints before adding anything. Using the RTE helps. I can place it and change everything while im watching it. once you do that you will see where the aircraft moves, then change it to a different place and see how it changes the rest, then put objects near the runway while it's taxiing so that you can see it stop, then pull back the object slowly until the aircraft resumes its mission. That will show you how close things can be. Also if something is too close to it in the other direction will cause it not to move. It can be all clear to the left, the way you want him to turn, but if an object is too close on the right, then it won't move either. Programmin AI on flat land is one thing, but im sure its alot more complicated when it comes to AI knowing how and where to go to make an airstrip work. At least i think it might be. Im just glad they taxi at all. BF2 could have used that. jets taking off with a 20 foot space in front of them .

Edited by victim913
not finished

Share this post


Link to post
Share on other sites

Thank you so much for the quick response. The problem with the aircraft stopping every few feet was solved by looking into any objects near the airfield. I found that my little moble radar site was a tad too close to the runway. Eventhough the plane wing was really far away from the unit. So the plane landed and finally made it all the way down the runway, turned at the far taxi way and taxied all the way back around. I expected the aircraft to stop and shutdown the engines but instead it kept going turned back onto runway and took off. It ignored the hold command with a trigger synched to it. I used the land command

herc1 land "LAND" (Herc1 is the plane name)

I have not tried the land at command

I tried putting

herc1 land "LAND" , herc1 setfuel 0 (That caused the plane to shut down in mid air and crash into the runway.

placeing the setfuel command in the hold waypoint was ignored.

It does seem to be a pain to get an aircraft to do anything that you want.

It seems like the land command will cause the plane to land and taxi back around and take off. It ignores everything until it is back in the air.

I tried using the get out command but still useless even with a trigger to place the pilot back in. They just stay out and never get into the aircraft.

I'm trying to get the aircraft to land and pickup a unit that is fully ai. Durring this time the engines should shut down. Doors to open .. unit to load doors to close engines start taxi and take off again. The cycle waypoint should then repeat the process. I'm not sure if i need to remove the group at the cycle waypoint and setpos back to the hanger or what. That will be tackled later. Again this is just an ai life mod. It is designed to make the player feel like the base is alive and in a combat zone. I have never been to a fob where there arent planes and vehicles running around. Combat missions run 24/7 and the bases are very busy.

Helicopters in the game seem to respond fine to most commands.

Also you said about using RTE and i looked it up installed it but when i go to run it, i get an error while running it. I added the @rte folder to my install directory of ARMA2 but not really sure what else to do after that. I assume you got it working fine so maybe a few quick tips on getting it to run.

I will keep playing around with some of commands to see if i can manage to get this to work. You have been a great help. I will also check what version im running so I can add it. Is there also a FILTER to use in the editor. After so many tracks and waypoints it gets extrememly hard to keep track of it all especially if its on a small airbase. Please let me know if there is a way to filter out just the objects i want to work on so i dont click on the wrong waypoints. In most editors you can filter things out.

Thanks again

Bill

153rd MP Co.

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  

×