Dissallowing AI spawn on a speciffic team?
Moderator: Moderators
- Tardis
- I got banned!

- Posts: 18
- Joined: Wed Oct 27, 2010 4:50 am
- Projects :: No Mod project currently.
Dissallowing AI spawn on a speciffic team?
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

- Posts: 438
- Joined: Thu Apr 15, 2010 4:17 am
- Projects :: Server modding
- Contact:
Re: Dissallowing AI spawn on a speciffic team?
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.
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},
}
}- Tardis
- I got banned!

- Posts: 18
- Joined: Wed Oct 27, 2010 4:50 am
- Projects :: No Mod project currently.
Re: Dissallowing AI spawn on a speciffic team?
Okay, thanks!
