- Joined
- Feb 27, 2019
- Messages
- 401
Hello,
I want to make a function "IsUnitTypeWard" to check if a unit is a ward (because the default JASS API functions cannot check this particular type, there is no constant for it...).
I saw that you can get the units "Targeted as"/'utar' & "Stats - Unit Classification"/'utyp' through the BlzGetUnitIntegerField.
In my case it's OK, I tested and it returns respectively 16 (2^4->5th bit) and 512 (2^9->10th bit).
But I'm wondering: has someone documented the complete integer flags for those 2 attributes ? And maybe others^^
I want to make a function "IsUnitTypeWard" to check if a unit is a ward (because the default JASS API functions cannot check this particular type, there is no constant for it...).
I saw that you can get the units "Targeted as"/'utar' & "Stats - Unit Classification"/'utyp' through the BlzGetUnitIntegerField.
In my case it's OK, I tested and it returns respectively 16 (2^4->5th bit) and 512 (2^9->10th bit).
But I'm wondering: has someone documented the complete integer flags for those 2 attributes ? And maybe others^^