Page 1 of 1

AI targeting flyers but not walkers

Posted: Mon Feb 07, 2011 12:27 am
by wishihadaname
Quick scripting question. Is there a way to get the AI, in this case a self piloted AA gun, to only aim at flying vehicles and not at ground vehicles? I tried setting minimum swivel values but the AI seems to override these. Its kind of annoying to have your AA gun be distracted by a walker it can't hit while the TIE bombers its supposed to be nailing out of the sky are dropping bombs on the rebels.

Re: AI targeting flyers but not walkers

Posted: Mon Feb 07, 2011 11:15 am
by DarthD.U.C.K.
set either the healthtype of the walkers or flyers to animal/building and make the turrets not aim at them with these values:

Code: Select all

                    AITargetPerson
                    AITargetAnimal
                    AITargetDroid
                    AITargetVehicle
                    AITargetBuilding
I would probably make the flyers animals because i assume the walkers will be damaged by normal weapons more often and therefore keep their healthtype so the vehicle-dagamescale still works for them.