LeftClickObject
Right click an object.
LeftClickObject(--[[(1)]]objectReference) : true | false
- See Object Reference for more information on possible values.
Example
Interact with dead unit.
if UnitIsDeadOrGhost('target') then LeftClickObject('target')end