I'm currently struggling around with some unit flags I need to know.
I did a research on the flags which indicate wether you are in combat or not, but it seems not to work.
Code:
public bool inCombat
{
get
{
return Convert.ToBoolean(flags & 0x0080000);
}
}
Whereas the "isLootable" property correcly works.
Code:
public bool isLootable
{
get
{
if (dynamicFlags == 13 || dynamicFlags == 1)
return true;
return false;
}
}
I checked the memory read on the unit decriptor array, and it seems to retrieve the values correctly.