Lore archive · Warcraft Wiki, 2023 dump
API UnitChannelInfo
Last wiki revision 2023-04-05
Returns information about the spell currently being channeled by the specified unit. name, text, texture, startTimeMS, endTimeMS, isTradeSkill, notInterruptible, spellId = UnitChannelInfo(unit)
- unit: : UnitId
- name: - The name of the spell, or nil if no spell is being channeled.
- text: - The name to be displayed.
- texture: - The texture path associated with the spell icon.
- startTimeMS: - Specifies when channeling began, in milliseconds (corresponds to GetTime*1000).
- endTimeMS: - Specifies when channeling will end, in in milliseconds (corresponds to GetTime*1000).
- isTradeSkill: - Specifies if the cast is a tradeskill.
- notInterruptible: - if true, indicates that this channeling cannot be interrupted with abilities like Kick or Pummel. In default UI those spells have shield frame around their icons on enemy channeling bars. Always returns in Classic.
- spellId: - The spell's unique identifier.
The following snippet prints the amount of time remaining before the player's current spell finishes channeling. local spell, _, _, _, endTimeMS = UnitChannelInfo("player") if spell then local finish = endTimeMS/1000 - GetTime print(spell .. ' will be finished channeling in ' .. finish .. ' seconds.') end
Source
https://warcraft.wiki.gg/wiki/API_UnitChannelInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.