Lua SetUInt32Value

From ArcEmu-Wiki
Jump to: navigation, search
+/-
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker



Syntax

pUnit:SetUInt32Value(index, flags)

Index

52: ITEM_FIELD_ENCHANTMENT_11_1
59: UNIT_FIELD_FLAGS in wow 3.3.5a.

Flags

Here are some of the Unit field flags flags. These are the same flags as in the field flags in the creature_spawns table.

Example

local UNIT_FLAG_NOT_SELECTABLE = 26
 
function FireVisual_OnSpawn(pUnit, event)
  pUnit:SetUInt32Value(59, UNIT_FLAG_NOT_SELECTABLE)
end
Personal tools