Reading a units armor type or category

Reading a units armor type or category

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Reading a units armor type or category

Post by Erik »

Is this possible? The wiki has no information regarding this.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Reading a units armor type or category

Post by Beherith »

http://springrts.com/wiki/Lua_UnitDefs
both armorType and category work iirc
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Reading a units armor type or category

Post by Forboding Angel »

Beware, category is flaky as all hell.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Reading a units armor type or category

Post by FLOZi »

Forboding Angel wrote:Beware, category is flaky as all hell.
Meaningless post... is meaningless.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Reading a units armor type or category

Post 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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Reading a units armor type or category

Post by FLOZi »

Categories work fine, and this is entirely tangential to the OP.
Post Reply

Return to “Game Development”