Dissallowing AI spawn on a speciffic team?

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
Tardis
I got banned!
I got banned!
Posts: 18
Joined: Wed Oct 27, 2010 4:50 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2-SWRC-SWEAW

Dissallowing AI spawn on a speciffic team?

Post by Tardis »

I have the Fake Console mod and I've seen this function were you can dissallow AI spawn for either team 1 or 2. I'm trying to make a modded map that can be run on a dedicated server where its you and your teammates, onto 32 AI bots. I know the command AllowAISpawn(false) to stop all AI from spawning but that dosent fill my needs. So I know this can be done, but how?
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: Dissallowing AI spawn on a speciffic team?

Post by fasty »

Its simple really. This is part of the lua for my recently released mod with players VS 32 bots.
The , 0, 0}, means no AI can spawn as them.

Code: Select all

SetupTeams{
        rep = {
        team = REP,
        units = 20,
        reinforcements = 200,
        soldier  = { "cis_hero_jangofett3", 0, 0},
        assault  = { "cis_hero_jangofett4",0, 0},
        engineer = { "cis_hero_jangofett5",0, 0},
        sniper   = { "cis_hero_jangofett6",0, 0},
        officer  = { "cis_hero_jangofett2",0, 0},
	     special = { "cis_hero_jangofett",0,0},

            
        },
        cis = {
        team = CIS,
        units = 32,
        reinforcements = 150,
        soldier  = { "gun_inf_soldier",21, 21},
        assault  = { "gun_inf_defender",11, 11},

        }
     }
User avatar
Tardis
I got banned!
I got banned!
Posts: 18
Joined: Wed Oct 27, 2010 4:50 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2-SWRC-SWEAW

Re: Dissallowing AI spawn on a speciffic team?

Post by Tardis »

Okay, thanks!
Post Reply