Page 1 of 1

Reading a units armor type or category

Posted: 05 Oct 2012, 17:39
by Erik
Is this possible? The wiki has no information regarding this.

Re: Reading a units armor type or category

Posted: 05 Oct 2012, 18:47
by Beherith
http://springrts.com/wiki/Lua_UnitDefs
both armorType and category work iirc

Re: Reading a units armor type or category

Posted: 07 Oct 2012, 23:45
by Forboding Angel
Beware, category is flaky as all hell.

Re: Reading a units armor type or category

Posted: 08 Oct 2012, 19:36
by FLOZi
Forboding Angel wrote:Beware, category is flaky as all hell.
Meaningless post... is meaningless.

Re: Reading a units armor type or category

Posted: 09 Oct 2012, 00:07
by Forboding Angel
Categories sometimes work. Sometimes the don't. In some cases, only the first category listed will be obeyed. At other times in that same list, all will be obeyed.

In other words, don't rely on categories too heavily, because you will end up quite frustrated with the results.

Re: Reading a units armor type or category

Posted: 09 Oct 2012, 00:57
by FLOZi
Categories work fine, and this is entirely tangential to the OP.