IsInCinematicScene

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 7.0.3 / 1.13.2

Returns true during in-game cinematics/cutscenes involving NPC actors and scenescripts.

inCinematicScene = IsInCinematicScene()

Returns

inCinematicScene
boolean

Example

Prints what type of cinematic is playing on CINEMATIC_START.

local function OnEvent(self, event, ...)
	if InCinematic() then
		print("simple cinematic")
	elseif IsInCinematicScene() then
		print("fancy in-game cutscene")
	end
end

local f = CreateFrame("Frame")
f:RegisterEvent("CINEMATIC_START")
f:SetScript("OnEvent", OnEvent)