Banning Bots from spawning?

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
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Banning Bots from spawning?

Post by destos »

ok so i made a mod and i edited the lua to sat team units=1 so only 1 person can spawn. but i want this map to be playable online and when i played it online only 1 person can spawn at a time. you literally have to wait till the other person dies. and i was wondering if there is a way to ban bots from spawning on one team?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Banning Bots from spawning?

Post by Xavious »

Code: Select all

AllowAISpawn(REP, false)
Replace REP with whatever team you don't want to spawn.
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Banning Bots from spawning?

Post by destos »

ok i put it in the lua..... works fine for singleplayer which is good but then i tried multiplayer and my frend who i tested with crashed even after he re downloaded the map...... any ideas as to why this doesnt work on multiplayer?
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: Banning Bots from spawning?

Post by [RDH]Zerted »

It does work online, as the FakeConsole uses it to prevent the AI from spawning. Something else is wrong with the map or it was added incorrectly. Get an error log (if you can) and post your lua.
Post Reply