Page 1 of 1
Unit Caps
Posted: 24 Feb 2010, 21:18
by oksnoop2
How do i do Unit limits. When i say unit limit i mean each unit has it's own unique pop limit. An example would be the population control in Age of Empires 3.
Re: Unit Caps
Posted: 24 Feb 2010, 21:25
by SinbadEV
don't know personally but I know for sure that it's being done in Gundam, so you could check there.
Re: Unit Caps
Posted: 25 Feb 2010, 03:19
by Forboding Angel
unitlimit = #
is the tag I believe.
Re: Unit Caps
Posted: 25 Feb 2010, 04:21
by Argh
You can do it via unitlimit, or you can write some custom Lua that cancels the Unit if you attempt to build it. See AllowUnitCreation() in LuaCallinReturn, Lua documentation.
Re: Unit Caps
Posted: 25 Feb 2010, 04:31
by oksnoop2
Forboding Angel wrote:unitlimit = #
is the tag I believe.
I tried putting that in my unit lua:
Code: Select all
yardMap = [[ooooooooo]],
script = [[bmex.lua]],
unitlimit = 1,
featureDefs = {
It still built more than one mex. Am I doing it wrong?
Re: Unit Caps
Posted: 25 Feb 2010, 06:42
by Forboding Angel
Damnit, I knew it was something retarded:
unitRestricted = 1,
Re: Unit Caps
Posted: 25 Feb 2010, 07:24
by SanadaUjiosan
Cool, thanks a lot.