API InCinematic

Returns true during pre-rendered "movie-like" cinematics. inCinematic = InCinematic

Returns

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

Details

 * Differs from which returns true for cinematics rendered dynamically by the game engine.

Example
Combine with and  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"