Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns information about a loss-of-control event.
locType, spellID, text, iconTexture, startTime, timeRemaining, duration, lockoutSchool, priority, displayType = C_LossOfControl.GetEventInfo(eventIndex)
Arguments[]
- eventIndex
- number - index of the loss-of-control effect currently affecting your character to return information about, ascending from 1.
Returns[]
- locType
- string - Effect type, e.g. "SCHOOL_INTERRUPT"
- spellID
- number - Spell ID causing the effect, e.g. 33786 for Cyclone.
- text
- string - Name of the effect, e.g. "Interrupted".
- iconTexture
- string - Effect icon texture.
- startTime
- number - Time at which this effect began, as per GetTime()
- timeRemaining
- number - Number of seconds remaining.
- duration
- number - Duration of the effect, in seconds.
- lockoutSchool
- number - Locked out spell school identifier; can be used as index into the global
SchoolStringTable
to retrieve school name. - priority
- number - ?
- displayType
- number - An integer specifying how this event should be displayed to the player, per the Interface-configured options:
- 0: the effect should not be displayed.
- 1: the effect should be displayed as a brief alert when it occurs.
- 2: the effect should be displayed for its full duration.
Patch changes[]
Patch 9.0.1 (2020-10-13): Removed. Replaced by C_LossOfControl.GetActiveLossOfControlData.
Patch 5.1.0 (2012-11-27): Added.