C_Commentator. FindSpectatedUnit
functionimplementedavailable in: camelot
Looks up a unit among the spectated players and returns its indices. · description by wowlua
function C_Commentator.FindSpectatedUnit( unitToken: string): (number?, number?, boolean?)Parameters
| name | type | description |
|---|---|---|
unitToken | string | UnitId |
Returns
| # | name | type |
|---|---|---|
| 1 | playerIndex | number? |
| 2 | teamIndex | number? |
| 3 | isPet | boolean? |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
- Requires active commentator.
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CommentatorFrame system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.