PGRData/Script/matrix/xmovieactions/XMovieActionAudioInterrupt.lua

15 lines
No EOL
391 B
Lua

local XMovieActionInterrupt = XClass(XMovieActionBase, "XMovieActionInterrupt")
function XMovieActionInterrupt:Ctor(actionData)
local params = actionData.Params
local paramToNumber = XDataCenter.MovieManager.ParamToNumber
self.CueId = paramToNumber(params[1])
end
function XMovieActionInterrupt:OnRunning()
XSoundManager.Stop(self.CueId)
end
return XMovieActionInterrupt