ObjectFlags

Returns the flags of a WowGameObject.

ObjectFlags(--[[(1)]]objectReference) : flags... | false
  1. See Object Reference for more information on possible values.

Example

Get a units flags.

local flags1, flags2, flags3, flags4, unitFlags1, unitFlags2, dynamicFlags = ObjectFlags('target')

Get an objects flags.

local flags, animationFlags = ObjectFlags(object)