LeftClickObject

Right click an object.

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

Example

Interact with dead unit.

 
if UnitIsDeadOrGhost('target') then
LeftClickObject('target')
end