SetTargetObject

Sets the target object to a WowGameObject.

SetTargetObject(--[[(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')
SetTargetObject(focus)
-- do something with "target"