SetTargetObject
Sets the target object to a WowGameObject
.
SetTargetObject(--[[(1)]]objectReference) : true | false
- 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"