ObjectLootTarget

Returns a WowGameObject representing the current loot target of an object.

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

Example

Get the players looting target.

local target = ObjectLootTarget('player')