RightClickObject

Right click an object.

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

Example

Interact with dead unit.

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