LUA AI Count
Posted: Thu Jan 15, 2009 4:15 am
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.
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
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