Wowpedia
Advertisement
Wowpedia
240,497
pages
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2

Returns true during pre-rendered "movie-like" cinematics.

inCinematic = InCinematic()

Returns

inCinematic 
boolean - True if the game is showing an pre-rendered cinematic movie.

Details

  • Differs from IsInCinematicScene() which returns true for cinematics rendered dynamically by the game engine.

Example

Combine with CINEMATIC_START and CINEMATIC_STOP to track when cinematics start and end.

 local inCinematic = InCinematic() and "Pre-rendered" or IsInCinematic() and "Dynamic"
 local frame = CreateFrame("Frame")
 frame:HookScript("OnEvent", function(__, event)
   if (event == "CINEMATIC_START") then
     inCinematic = InCinematic() and "Pre-rendered" or IsInCinematic() and "Dynamic"
   elseif (event == "CINEMATIC_STOP") then
     inCinematic = false
   end
 end)
 frame:RegisterEvent("CINEMATIC_START")
 frame:RegisterEvent("CINEMATIC_STOP")

 print inCinematic    -- Returns false, "Pre-rendered", or "Dynamic"
Advertisement