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).
More help on making the AI not quite so stupid
Moderator: Moderators
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
-
Penguin
- Jedi Admin

- Posts: 2541
- Joined: Sun Mar 05, 2006 12:00 am
- Location: Australia
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
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:To keep AI from crashing into the ground use aiflyerheight in your luas.
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.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.
-
busterkinkade
