Lua GetUInt32Value

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the UInt32Value for a unit.

Usage/Examples

UNIT_FIELD_FLAGS_2 = 0x0006 + 0x0035
 
function ChangeFlags(unit)
local Flags = unit:GetUInt32Value(UNIT_FIELD_FLAGS_2)
	if(Flags == 2) then
		unit:SetUInt32Value(UNIT_FIELD_FLAGS_2, 0)
	end
end
Personal tools