How can I check if a unit is enemy or friend rather than using "UnitIsFriend" or "UnitIsEnemy"?
I wanna check it by reading memory.
Thanks guy
How can I check if a unit is enemy or friend rather than using "UnitIsFriend" or "UnitIsEnemy"?
I wanna check it by reading memory.
Thanks guy
Just call the function UnitCanAttack. There are many checks that go into deciding if you can or cannot attack a unit and this function covers them all.
faction template dbc two options extract it / read that or memory reading WDC3 or what ever it's at now
descriptor
.data:0000000002C20BF0 FactionTemplateDB rebased 0x0Code:public uint FactionTemplate { get { try { return GetValue<uint>(CGUnitData.CGUnitData_FactionTemplate); } catch { return 0; } } }
.text:0000000000489DA0 WowClientDB2__GetRowPointer rebased 0x0
unless your dump the casc file and read from the file directly or IN process just call it