AI targeting flyers but not walkers
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
AI targeting flyers but not walkers
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.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: AI targeting flyers but not walkers
set either the healthtype of the walkers or flyers to animal/building and make the turrets not aim at them with these values:
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.
Code: Select all
AITargetPerson
AITargetAnimal
AITargetDroid
AITargetVehicle
AITargetBuilding
