Page 1 of 1

Dissallowing AI spawn on a speciffic team?

Posted: Sat Oct 30, 2010 5:34 pm
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?

Re: Dissallowing AI spawn on a speciffic team?

Posted: Sat Oct 30, 2010 6:05 pm
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},

        }
     }

Re: Dissallowing AI spawn on a speciffic team?

Posted: Sat Oct 30, 2010 6:31 pm
by Tardis
Okay, thanks!