Wowpedia
Advertisement
Wowpedia
240,505
pages
Game Flavors
Links
Patch
Added in 7.0.3 / 1.13.2

Returns true during cinematics produced dynamically by the game engine.[citation needed] 

inCinematicScene = IsInCinematicScene()

Returns

inCinematicScene 
boolean - True if the game is showing an in-game cinematic scene

Details

  • Differs from InCinematic() which returns true for pre-rendered "movie-like" cinematics.

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"

Patch changes

References

 
  1. ^ 2016-07-19, CinematicFrame.lua, version 7.0.3.22267, near line 110, archived at Townlong-Yak
Advertisement