What is the Players Class named as.
I have the full struct but not sure which one holds the Player's Class. Thanks to anyone who can tell me
Is it
UNIT_FIELD_FLAGS = 0x3A,
UNIT_FIELD_FLAGS_2 = 0x3B,
or what is it?
-Thanks
What is the Players Class named as.
I have the full struct but not sure which one holds the Player's Class. Thanks to anyone who can tell me
Is it
UNIT_FIELD_FLAGS = 0x3A,
UNIT_FIELD_FLAGS_2 = 0x3B,
or what is it?
-Thanks
UnitClass("Unit") lua function.
to save you the arduous task of opening your debugger, here.
58 race
59 class
5B sex
5C power type
Not really what i was looking for but i found it anyways.
uint32 Bytes = GetKnownField<uint32>(UNIT_FIELD_BYTES_0);
uchar8 Class = (uchar((Field>>
&0xFF);
Pretty much. Obviously the shifting and ANDing might change by a byte or two.