Removal of ai? [Solved]

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
brant777
Private Third Class
Posts: 52
Joined: Thu Mar 22, 2012 9:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: Why? PS3 is better
Location: pennsylvania
Contact:

Removal of ai? [Solved]

Post by brant777 »

The map i am making is for multiplayer player purposes and therefore i do not want ai in my map. Is there anyway other than changing the settings in bf2 to make ai count to 0 or using fakeconsole to remove ai?
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: removal of ai

Post by fasty »

Add this to your lua file:

Code: Select all

AllowAISpawn(IMP, false)
AllowAISpawn(ALL, false)
Remember to change the teams to match whatever teams you have.
User avatar
brant777
Private Third Class
Posts: 52
Joined: Thu Mar 22, 2012 9:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: Why? PS3 is better
Location: pennsylvania
Contact:

Re: removal of ai

Post by brant777 »

thank you, your awesome. that seemed to have done the trick :thumbs:
Post Reply