SetNPCObject

Sets the target object to a WowGameObject.

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

Example

Sets the target unit to the focus.

local focus = Object('focus')
SetNPCObject(focus)
-- do something with "target"