Page 1 of 1
More help on making the AI not quite so stupid
Posted: Mon Sep 25, 2006 9:15 pm
by jangoisbaddest
I'm making (among other things) a map that has both ground and air vehicles in it. The only problem is that the fighters keep attacking the ground vehicles. This wouldn't be such a problem, except that two things happen that I do not want:
*There are no dogfights
*The AI crashes into the terrain
If there is a way to have them target aircraft only, that would be great (all I see is AITargetVehicle = 0 or 1).
Posted: Mon Sep 25, 2006 9:19 pm
by -_-
Offtopic: Lower the avatar size(width), or it'll be removed.
Posted: Wed Sep 27, 2006 12:54 am
by jangoisbaddest
There. Now could someone please help me out? Is there some way of designating seprate types of vehicles to the AI?
Posted: Wed Sep 27, 2006 12:58 am
by Penguin
a: need alot of fighters for dog fights to happen
b: make flyer paths around the place, and also place danger regions around big objects that are in the way
Posted: Thu Sep 28, 2006 5:19 pm
by jangoisbaddest
psych0fred wrote:To keep AI from crashing into the ground use aiflyerheight in your luas.
Neato! I had no idea this function existed! I looked at the space template LUA and sure enough, those functions are there. Thanks!
psych0fred wrote:If you don't want the flyers to target the soldiers you'll probably have to set up new flyers and flag their odfs so they do not target soldiers. Also making sure your ODfs are set up with the correct soldiertype and vehicletype.
I figured there was some way to do that - though you misunderstand. The flyers aren't targeting soldiers, they're targeting ground vehicles - walkers and the like. I saw lines in the ODF that look like they control what tyoe of object the AI chooses to shoot at, but the only one for vehicles is for ALL vehicles. But if there's some way to distinguish from flyers and speeders/walkers (as un using the specific object type, like walker, to be exempt from the AI's targeting), then that'd be great! Cause I have a feeling that if/when I can get them not to attack the ground vehicles, only flyers, then most of my problems will be solved.
Posted: Fri Sep 29, 2006 11:51 am
by busterkinkade
I'm just curious, is the AI system for normal soldiers in SWBF II different then it was in SWBF, if so, is there anyway you could change it back?