ww2commander
Emperor
Just when I thought I was getting the hang of LUA, I get stumped by the most basic of things!
Is there a integer to string type function that converts 1 to the string UNITCLASS_WORKER?
When I use the function unit:GetUnitClassType() it returns the unitclass as an integer, yet I want to use the string equivalent for something and can't for the life of me figure out how to do it.
Is there a integer to string type function that converts 1 to the string UNITCLASS_WORKER?
When I use the function unit:GetUnitClassType() it returns the unitclass as an integer, yet I want to use the string equivalent for something and can't for the life of me figure out how to do it.