Accessing category unitdef
Posted: 19 Jan 2014, 13:14
Hello
I need to know how to access the "category" field of unitdefs from lua.
The wiki specifies nothing and having tried just "category" brings up an error.
Specifically what i need is to check whetever a certain unit belongs to a category, i dont really know how to do that either once i have the category field as a string.
I need to know how to access the "category" field of unitdefs from lua.
The wiki specifies nothing and having tried just "category" brings up an error.
Specifically what i need is to check whetever a certain unit belongs to a category, i dont really know how to do that either once i have the category field as a string.