Controlling AI

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
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Controlling AI

Post by myers73 »

Is it possible to give different classes different commands, so my assault troopers go out and attack enemy CPs while my support classes (sniper and engi) stay back and guard.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: controlling AI

Post by kinetosimpetus »

There's an odf property, UnitType or something like that. All I know for sure is that if the property is "scout", they will be much more likely to take sniper hintnodes, and 'defend' areas.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: controlling AI

Post by myers73 »

illl try that...
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: controlling AI

Post by [RDH]Zerted »

You can use hint nodes and AI pathing to help control your AI. If you really want different objectives for the different unit types, stick each class on its own local team and use AI goals.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: controlling AI

Post by MercuryNoodles »

In short, no. More or less, they may already do what you want in part, but there's no way to really fine tune anything dealing with how AI behaves beyond planning, barriers, hintnodes, certain types of regions, flyer splines, certain odf parameters, and a few lua tricks. Take a look at psych0fred's docs (one of them explains AIGoals), though. They hold some really useful info.
Post Reply