UnitId

Unit ID
These are the various unit identifiers that are used by functions requiring a UnitId argument.
 * {| border="1"

! UnitId ! Description ! Format ! Example ! "player" ! "pet" ! "target" ! "mouseover" ! "focus" ! "party" ! "raid"
 * current player
 * current pet of player
 * current target
 * current item under mouse cursor
 * current focus
 *  = 1 to 12
 * "focus12"
 * current party member
 *  = 1 to 5
 * "party3"
 * current raid member
 *  = 1 to 36
 * "raid22"
 * }

Combined Unit ID
It is valid to combine unit identifiers to reference an other type of unit. Add target after any of the above to find their target. E.g. "playertargettargettarget" returns the Target of the Target of the Target that the Player is targeting. (please add more if you know them):
 * {| border="1"

! Combined UnitId ! Description ! Format ! Example ! "target" ! "pet"
 * current  target
 *  = UnitId
 * "party3target"
 * current  pet
 *  = UnitId
 * "focus8pet"
 * }