Hey, I'm trying to get LUA to modify the UNIT_FIELD_FLAGS of a mob that the script spawns so that is is untargetable (un-selectable) on the client.
This should apparently work (I've checked my rev's Unit.H and UnitFields.h and it's correct)...
OBJECT_END = 0x0006
UNIT_FIELD_FLAGS = OBJECT_END + 0x0035
UNIT_NOT_SELECTABLE = 0x02000000
pUnit:SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_NOT_SELECTABLE)
100% pUnit is the correct pointer for the mob in question and it works fine, the above doesn't even throw an LUA error in the console, just seems to do nothing.
Any help here would be appreciated!![]()