LUA AI Count
Moderator: Moderators
-
Tygr
- Corporal

- Posts: 150
- Joined: Mon Aug 25, 2008 1:11 pm
LUA AI Count
How would I make it where there are no AI units on one side? I am starting a map with a gameplay system similar to Mav's Aquilaris Rebel Ops level, so I need to have a human-only side.
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: LUA AI Count
I think that has been already adressed, you just need to set up the team units to zero, and you can set a higher count later if needed via script.
- (RAPTOR)BENSTWO{SGT}
- Command Sergeant Major

- Posts: 280
- Joined: Tue Jul 22, 2008 3:47 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: LUA AI Count
Not sure if this is what you mean, but this might help
http://www.gametoast.com/forums/viewtop ... wn#p263171
http://www.gametoast.com/forums/viewtop ... wn#p263171
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: LUA AI Count
ForceHumansOntoTeam1() -- that's the function you're wanting to use
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: LUA AI Count
This is redundant in a "campaign" map; the campaign game rules forces humans onto team 1 by default. To really do what you want, OP (or at least what you say you want), use "AllowAISpawn(ALL, false)" where "ALL" is the side variable (ALL, IMP, REP, etc.).Teancum wrote:ForceHumansOntoTeam1() -- that's the function you're wanting to use
-
Tygr
- Corporal

- Posts: 150
- Joined: Mon Aug 25, 2008 1:11 pm
Re: LUA AI Count
Yep, that's what I need. Thanks!Maveritchell wrote:This is redundant in a "campaign" map; the campaign game rules forces humans onto team 1 by default. To really do what you want, OP (or at least what you say you want), use "AllowAISpawn(ALL, false)" where "ALL" is the side variable (ALL, IMP, REP, etc.).Teancum wrote:ForceHumansOntoTeam1() -- that's the function you're wanting to use
