AI targeting flyers but not walkers

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

AI targeting flyers but not walkers

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: AI targeting flyers but not walkers

Post 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.
Post Reply