Unit Caps
Moderator: Moderators
Re: Unit Caps
don't know personally but I know for sure that it's being done in Gundam, so you could check there.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Unit Caps
unitlimit = #
is the tag I believe.
is the tag I believe.
Re: Unit Caps
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
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 = {
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Unit Caps
Damnit, I knew it was something retarded:
unitRestricted = 1,
- SanadaUjiosan
- Conflict Terra Developer
- Posts: 907
- Joined: 21 Jan 2010, 06:21
Re: Unit Caps
Cool, thanks a lot.