v0.13.8

C_Commentator

namespaceavailable in: camelot

Status in wowlua

144 functions: 63 implemented, 1 recorded, 80 guessed. 10 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AddPlayerOverrideNameSets a name the commentator UI shows in place of a player's name. · by wowlua
(playerName: string, overrideName: string)
guessed
AddTrackedDefensiveAurasAdds spells to the defensive auras the commentator UI tracks. · by wowlua
(spellIDs: number[])
implemented
AddTrackedOffensiveAurasAdds spells to the offensive auras the commentator UI tracks. · by wowlua
(spellIDs: number[])
implemented
AreTeamsSwappedWhether the commentator view shows the two teams on swapped sides. · by wowlua
(): boolean
guessed
AssignPlayerToTeamAssigns a player to a named team in the commentator's team directory. · by wowlua
(playerName: string, teamName: string)
guessed
AssignPlayersToTeamAssigns several players to a named team in the commentator's team directory. · by wowlua
(playerName: string[], teamName: string)
guessed
AssignPlayersToTeamInCurrentInstanceAssigns the players of a team in the current match to a named team. · by wowlua
(teamIndex: number, teamName: string)
guessed
CanUseCommentatorCheatsWhether commentator cheats are available. · by wowlua
(): boolean
guessed
ClearCameraTargetClears the commentator camera's target. · by wowlua
()
implemented
ClearFollowTargetStops the commentator camera from following a player. · by wowlua
()
implemented
ClearLookAtTargetClears a target the commentator camera looks at. · by wowlua
(lookAtIndex: number?)
implemented
EnterInstanceEnters the match selected with SetMapAndInstanceIndex as a commentator. · by wowlua
()
implemented
ExitInstanceLeaves the match the commentator is spectating. · by wowlua
()
implemented
FindSpectatedUnitLooks up a unit among the spectated players and returns its indices. · by wowlua
(unitToken: string): (number?, number?, boolean?)
implemented
FindTeamNameInCurrentInstanceReturns the team name assigned to a team of the current match. · by wowlua
(teamIndex: number): string?
guessed
FindTeamNameInDirectoryReturns the name of the team the given players are assigned to. · by wowlua
(playerNames: string[]): string?
guessed
FlushCommentatorHistoryClears the saved commentator history. · by wowlua
()
guessed
FollowPlayerMakes the commentator camera follow a player. · by wowlua
(factionIndex: number, playerIndex: number, forceInstantTransition: boolean?)
implemented
FollowUnitMakes the commentator camera follow a unit. · by wowlua
(token: string)
implemented
ForceFollowTransitionForces the commentator camera's transition to its follow target. · by wowlua
()
implemented
GetAdditionalCameraWeightReturns the additional camera weight set with SetAdditionalCameraWeight. · by wowlua
(): (number, number)
implemented
GetAdditionalCameraWeightByTokenReturns the additional weight the smart camera gives a unit. · by wowlua
(unitToken: string): number?
implemented
GetAllPlayerOverrideNamesReturns every player name override of the commentator UI. · by wowlua
(): NameOverrideEntry[]
implemented
GetCameraReturns the commentator camera's position, yaw, pitch, roll and field of view. · by wowlua
(): (number?, number?, number?, number?, number?, number?, number?)
implemented
GetCameraCollisionWhether the commentator camera collides with the world. · by wowlua
(): boolean
guessed
GetCameraPositionReturns the commentator camera's position. · by wowlua
(): (number?, number?, number?)
implemented
GetCombatEventInfoReturns information about the combat event being handled in commentator mode. · by wowlua
()
implemented
GetCommentatorHistoryReturns the commentator history, to restore later with SetCommentatorHistory. · by wowlua
(): CommentatorHistory
guessed
GetCommentatorMatchDataStateReturns the state of the commentator's match data. · by wowlua
(): CommentatorMatchDataState
implemented
GetCurrentMapIDReturns the map ID of the match being spectated. · by wowlua
(): number?
implemented
GetDampeningPercentReturns the current dampening percentage of the spectated arena match. · by wowlua
(): number
guessed
GetDistanceBeforeForcedHorizontalConvergenceReturns the distance at which the smart camera is forced to converge horizontally on its target. · by wowlua
(): number
guessed
GetDurationToForceHorizontalConvergenceReturns how long, in milliseconds, before the smart camera is forced to converge horizontally on its target. · by wowlua
(): number
guessed
GetExcludeDistanceReturns the smart camera's exclude distance. · by wowlua
(): number
guessed
GetHardlockWeightReturns the smart camera's hard-lock weight. · by wowlua
(): number
guessed
GetHorizontalAngleThresholdToSmoothReturns the horizontal angle above which the smart camera smooths its turns. · by wowlua
(): number
guessed
GetIndirectSpellIDReturns the indirect spell that counts as the given tracked spell. · by wowlua
(trackedSpellID: number): number
implemented
GetInstanceInfoReturns information about an instance of a map in the commentator's match list. · by wowlua
(mapIndex: number, instanceIndex: number): (number?, string?, number?, number?, number?)
implemented
GetLookAtLerpAmountReturns how quickly the commentator camera turns toward its look-at target. · by wowlua
(): number
guessed
GetMapInfoReturns information about a map in the commentator's match list. · by wowlua
(mapIndex: number): (number?, number?, number?, number?)
implemented
GetMatchDurationReturns how long the spectated match has been running. · by wowlua
(): number
guessed
GetMaxNumPlayersPerTeamReturns the maximum number of players on a team. · by wowlua
(): number
guessed
GetMaxNumTeamsReturns the maximum number of teams in a match. · by wowlua
(): number
guessed
GetModeReturns the commentator's current mode. · by wowlua
(): number
guessed
GetMsToHoldForHorizontalMovementReturns how long, in milliseconds, the smart camera waits before moving horizontally. · by wowlua
(): number
guessed
GetMsToHoldForVerticalMovementReturns how long, in milliseconds, the smart camera waits before moving vertically. · by wowlua
(): number
guessed
GetMsToSmoothHorizontalChangeReturns how long, in milliseconds, the smart camera takes to smooth a horizontal change. · by wowlua
(): number
guessed
GetMsToSmoothVerticalChangeReturns how long, in milliseconds, the smart camera takes to smooth a vertical change. · by wowlua
(): number
guessed
GetNumMapsReturns the number of maps in the commentator's match list. · by wowlua
(): number
guessed
GetNumPlayersReturns the number of players on a team. · by wowlua
(factionIndex: number): number?
implemented
GetOrCreateSeriesReturns the series between two teams, creating it without a score if there is none. · by wowlua
(teamName1: string, teamName2: string): CommentatorSeries
guessed
GetPlayerAuraInfoReturns timing information for an aura on a spectated player. · by wowlua
(teamIndex: number, playerIndex: number, spellID: number): (number?, number?, boolean?)
implemented
GetPlayerAuraInfoByUnitReturns timing information for an aura on a spectated unit. · by wowlua
(token: string, spellID: number): (number?, number?, boolean?)
implemented
GetPlayerCooldownInfoReturns the cooldown of a spell for a spectated player. · by wowlua
(teamIndex: number, playerIndex: number, spellID: number): (number?, number?, boolean?)
implemented
GetPlayerCooldownInfoByUnitReturns the cooldown of a spell for a spectated unit. · by wowlua
(unitToken: string, spellID: number): (number?, number?, boolean?)
implemented
GetPlayerCrowdControlInfoReturns the crowd control currently on a spectated player. · by wowlua
(teamIndex: number, playerIndex: number): (number?, number?, number?)
implemented
GetPlayerCrowdControlInfoByUnitReturns the crowd control currently on a spectated unit. · by wowlua
(token: string): (number?, number?, number?)
implemented
GetPlayerDataReturns information about a spectated player. · by wowlua
(teamIndex: number, playerIndex: number): CommentatorPlayerData?
implemented
GetPlayerFlagInfoWhether a spectated player carries a flag. · by wowlua
(teamIndex: number, playerIndex: number): boolean
implemented
GetPlayerFlagInfoByUnitWhether a spectated unit carries a flag. · by wowlua
(unitToken: string): boolean
implemented
GetPlayerItemCooldownInfoReturns the cooldown of an item for a spectated player. · by wowlua
(teamIndex: number, playerIndex: number, itemID: number): (number?, number?, boolean?)
implemented
GetPlayerItemCooldownInfoByUnitReturns the cooldown of an item for a spectated unit. · by wowlua
(unitToken: string, itemID: number): (number?, number?, boolean?)
implemented
GetPlayerOverrideNameReturns the name set for a player with AddPlayerOverrideName. · by wowlua
(originalName: string): string?
guessed
GetPlayerSpellChargesReturns the charges of a spell for a spectated player. · by wowlua
(teamIndex: number, playerIndex: number, spellID: number): (number?, number?, number?, number?)
implemented
GetPlayerSpellChargesByUnitReturns the charges of a spell for a spectated unit. · by wowlua
(unitToken: string, spellID: number): (number?, number?, number?, number?)
implemented
GetPositionLerpAmountReturns how quickly the commentator camera moves toward its target position. · by wowlua
(): number
guessed
GetSmoothFollowTransitioningWhether the commentator camera moves smoothly when it switches to a new follow target. · by wowlua
(): boolean
implemented
GetSoftlockWeightReturns the smart camera's soft-lock weight. · by wowlua
(): number
guessed
GetSpeedFactorReturns the commentator camera's speed factor. · by wowlua
(): number
guessed
GetStartLocationReturns the start location on a map. · by wowlua
(mapID: number): Vector3DMixin?
guessed
GetTeamColorReturns the color of a team in the commentator UI. · by wowlua
(teamIndex: number): ColorMixin
guessed
GetTeamColorByUnitReturns the color of a unit's team in the commentator UI. · by wowlua
(unitToken: string): ColorMixin
guessed
GetTimeLeftInMatchReturns the time left in the spectated match. · by wowlua
(): number?
guessed
GetTrackedSpellIDReturns the tracked spell that an indirect spell counts as. · by wowlua
(indirectSpellID: number): number
implemented
GetTrackedSpellsReturns a spectated player's tracked spells in a category, and the lookup's result. · by wowlua
(teamIndex: number, playerIndex: number, category: TrackedSpellCategory): (number[]?, TrackedSpellsResult)
implemented
GetTrackedSpellsByUnitReturns a spectated unit's tracked spells in a category, and the lookup's result. · by wowlua
(unitToken: string, category: TrackedSpellCategory): (number[]?, TrackedSpellsResult)
implemented
GetUnitDataReturns information about a spectated unit. · by wowlua
(unitToken: string): CommentatorUnitData
implemented
GetWargameInfoReturns information about an entry of the wargame list. · by wowlua
(listID: number): (string?, number?, number?, boolean?)
implemented
HasTrackedAurasWhether a unit has tracked offensive or defensive auras on it, one boolean for each kind. · by wowlua
(token: string): (boolean, boolean)
implemented
IsSmartCameraLockedWhether the smart camera is locked. · by wowlua
(): boolean
guessed
IsSpectatingWhether the player is spectating a match as a commentator. · by wowlua
(): boolean
recorded
IsTrackedDefensiveAuraWhether the spell is a tracked defensive aura. · by wowlua
(spellID: number): boolean
implemented
IsTrackedOffensiveAuraWhether the spell is a tracked offensive aura. · by wowlua
(spellID: number): boolean
implemented
IsTrackedSpellWhether the spell is tracked for a spectated player in the given category. · by wowlua
(teamIndex: number, playerIndex: number, spellID: number, category: TrackedSpellCategory): boolean
implemented
IsTrackedSpellByUnitWhether the spell is tracked for a spectated unit in the given category. · by wowlua
(unitToken: string, spellID: number, category: TrackedSpellCategory): boolean
implemented
IsUsingSmartCameraWhether the commentator uses the smart camera. · by wowlua
(): boolean
guessed
LookAtPlayerPoints the commentator camera at a player. · by wowlua
(factionIndex: number, playerIndex: number, lookAtIndex: number?)
implemented
RemoveAllOverrideNamesRemoves every player name override. · by wowlua
()
guessed
RemovePlayerOverrideNameRemoves a player's name override. · by wowlua
(originalPlayerName: string)
guessed
RequestPlayerCooldownInfoRequests the cooldown information of a spectated player. · by wowlua
(teamIndex: number, playerIndex: number)
implemented
ResetFoVTargetResets the commentator camera's target field of view. · by wowlua
()
guessed
ResetSeriesScoresResets the scores of the series between two teams. · by wowlua
(teamName1: string, teamName2: string)
guessed
ResetSettingsResets the commentator settings to their defaults. · by wowlua
()
guessed
ResetTrackedAurasClears the auras the commentator UI tracks. · by wowlua
()
implemented
SendAddonMessageWorks the same as C_ChatInfo.SendAddonMessage but accepts secrets and is only allowed when outgoing addon comms are allowed (i.e. on tournament realms)
(prefix: string, message: string, chatType: string?, target: string?): SendAddonMessageResult
guessed
SendAddonMessageLoggedWorks the same as C_ChatInfo.SendAddonMessageLogged but accepts secrets and is only allowed when outgoing addon comms are allowed (i.e. on tournament realms)
(prefix: string, message: string, chatType: string?, target: string?): SendAddonMessageResult?
guessed
SetAdditionalCameraWeightSets an additional weight the smart camera gives a spectated player. · by wowlua
(teamIndex: number, playerIndex: number, weight: number)
implemented
SetAdditionalCameraWeightByTokenSets an additional weight the smart camera gives a unit. · by wowlua
(unitToken: string, weight: number)
implemented
SetBlocklistedAurasSets the auras the commentator UI leaves out. · by wowlua
(spellIDs: number[])
guessed
SetBlocklistedCooldownsSets the spell cooldowns the commentator UI leaves out for a specialization. · by wowlua
(specID: number, spellIDs: number[])
guessed
SetBlocklistedItemCooldownsSets the item cooldowns the commentator UI leaves out. · by wowlua
(itemIDs: number[])
guessed
SetCameraSets the commentator camera's position, orientation and field of view. · by wowlua
(xPos: number, yPos: number, zPos: number, yaw: number, pitch: number, roll: number, fov: number)
implemented
SetCameraCollisionSets whether the commentator camera collides with the world. · by wowlua
(collide: boolean)
implemented
SetCameraPositionMoves the commentator camera to a position. · by wowlua
(xPos: number, yPos: number, zPos: number, snapToLocation: boolean)
implemented
SetCheatsEnabledEnables or disables commentator cheats. · by wowlua
(enableCheats: boolean)
guessed
SetCommentatorHistoryRestores commentator history saved with GetCommentatorHistory. · by wowlua
(history: CommentatorHistory)
guessed
SetDistanceBeforeForcedHorizontalConvergenceSets the distance at which the smart camera is forced to converge horizontally on its target. · by wowlua
(distance: number)
guessed
SetDurationToForceHorizontalConvergenceSets how long, in milliseconds, before the smart camera is forced to converge horizontally on its target. · by wowlua
(ms: number)
guessed
SetExcludeDistanceSets the smart camera's exclude distance. · by wowlua
(excludeDistance: number)
guessed
SetFollowCameraSpeedsSets the follow camera's elastic speed and minimum speed. · by wowlua
(elasticSpeed: number, minSpeed: number)
implemented
SetHardlockWeightSets the smart camera's hard-lock weight. · by wowlua
(weight: number)
guessed
SetHorizontalAngleThresholdToSmoothSets the horizontal angle above which the smart camera smooths its turns. · by wowlua
(angle: number)
guessed
SetLookAtLerpAmountSets how quickly the commentator camera turns toward its look-at target. · by wowlua
(amount: number)
guessed
SetMapAndInstanceIndexSelects the map and instance that EnterInstance enters. · by wowlua
(mapIndex: number, instanceIndex: number)
implemented
SetMouseDisabledDisables or enables mouse control of the commentator camera. · by wowlua
(disabled: boolean)
guessed
SetMoveSpeedSets the commentator camera's movement speed. · by wowlua
(newSpeed: number)
guessed
SetMsToHoldForHorizontalMovementSets how long, in milliseconds, the smart camera waits before moving horizontally. · by wowlua
(ms: number)
guessed
SetMsToHoldForVerticalMovementSets how long, in milliseconds, the smart camera waits before moving vertically. · by wowlua
(ms: number)
guessed
SetMsToSmoothHorizontalChangeSets how long, in milliseconds, the smart camera takes to smooth a horizontal change. · by wowlua
(ms: number)
guessed
SetMsToSmoothVerticalChangeSets how long, in milliseconds, the smart camera takes to smooth a vertical change. · by wowlua
(ms: number)
guessed
SetPositionLerpAmountSets how quickly the commentator camera moves toward its target position. · by wowlua
(amount: number)
guessed
SetRequestedDebuffCooldownsSets the debuff spells whose cooldowns the commentator UI requests for a specialization. · by wowlua
(specID: number, spellIDs: number[])
guessed
SetRequestedDefensiveCooldownsSets the defensive spells whose cooldowns the commentator UI requests for a specialization. · by wowlua
(specID: number, spellIDs: number[])
guessed
SetRequestedItemCooldownsSets the items whose cooldowns the commentator UI requests. · by wowlua
(itemIDs: number[])
guessed
SetRequestedOffensiveCooldownsSets the offensive spells whose cooldowns the commentator UI requests for a specialization. · by wowlua
(specID: number, spellIDs: number[])
guessed
SetSeriesScoreSets one team's score in the series between two teams. · by wowlua
(teamName1: string, teamName2: string, scoringTeamName: string, score: number)
guessed
SetSeriesScoresSets both teams' scores in the series between them. · by wowlua
(teamName1: string, teamName2: string, score1: number, score2: number)
guessed
SetSmartCameraLockedLocks or unlocks the smart camera. · by wowlua
(locked: boolean)
guessed
SetSmoothFollowTransitioningSets whether the commentator camera moves smoothly when it switches to a new follow target. · by wowlua
(enabled: boolean)
implemented
SetSoftlockWeightSets the smart camera's soft-lock weight. · by wowlua
(weight: number)
guessed
SetSpeedFactorSets the commentator camera's speed factor. · by wowlua
(factor: number)
guessed
SetTargetHeightOffsetSets the height offset of the point the commentator camera aims at. · by wowlua
(offset: number)
implemented
SetUseSmartCameraTurns the commentator's smart camera on or off. · by wowlua
(useSmartCamera: boolean)
guessed
SnapCameraLookAtPointTurns the commentator camera to its look-at point at once. · by wowlua
()
implemented
SpellUsesItemChargesWhether the spell uses an item's charges. · by wowlua
(spellID: number): boolean
guessed
StartWargameStarts a wargame between two teams led by the given captains. · by wowlua
(listID: number, teamSize: number, tournamentRules: boolean, teamOneCaptain: string, teamTwoCaptain: string)
implemented
SwapTeamSidesSwaps the sides the two teams are shown on. · by wowlua
()
guessed
ToggleCheatsTurns commentator cheats on or off. · by wowlua
()
guessed
UpdateMapInfoRequests updated information about the commentator's maps. · by wowlua
(targetPlayer: string?)
implemented
UpdatePlayerInfoRequests updated information about the spectated players. · by wowlua
()
implemented
ZoomInZooms the commentator camera in. · by wowlua
()
guessed
ZoomIn_PositionZooms the commentator camera in. · by wowlua
(zoomAmount: number?)
guessed
ZoomOutZooms the commentator camera out. · by wowlua
()
guessed
ZoomOut_PositionZooms the commentator camera out. · by wowlua
(zoomAmount: number?)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
COMMENTATOR_COMBAT_EVENTno payloadnot implemented
COMMENTATOR_ENTER_WORLDno payloadimplemented
COMMENTATOR_HISTORY_FLUSHEDno payloadnot implemented
COMMENTATOR_IMMEDIATE_FOV_UPDATEfov: numbernot implemented
COMMENTATOR_MAP_UPDATEno payloadnot implemented
COMMENTATOR_PLAYER_NAME_OVERRIDE_UPDATEnameToOverride: string, overrideName: string?not implemented
COMMENTATOR_PLAYER_UPDATEno payloadnot implemented
COMMENTATOR_RESET_SETTINGSno payloadnot implemented
COMMENTATOR_TEAMS_SWAPPEDswapped: booleannot implemented
COMMENTATOR_TEAM_NAME_UPDATEteamName: stringnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("COMMENTATOR_COMBAT_EVENT").

Structures

  • CommentatorHistory · series, teamDirectory, overrideNameDirectory
  • CommentatorMatchDataState · receivedPlayerInfo, setInstancePlayers, requestedCooldownInfo, requestedPlayerCooldowns
  • CommentatorOverrideNameEntry · originalName, newName
  • CommentatorPlayerData · unitToken, name, faction, specialization, damageDone, damageTaken, healingDone, healingTaken, kills, deaths, soloShuffleRoundWins, soloShuffleRoundLosses
  • CommentatorSeries · teams
  • CommentatorSeriesTeam · name, score
  • CommentatorTeamDirectoryEntry · playerName, teamName
  • CommentatorTrackedItemCooldown · spellID, category
  • CommentatorUnitData · healthMax, health, absorbTotal, isDeadOrGhost, isFeignDeath, powerTypeToken, power, powerMax
  • NameOverrideEntry · originalName, overrideName
  • TeamPlayerRequestedCooldownInfo · teamIndex, playerIndex, cooldownsRequested

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CommentatorFrame system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.