onReplayStateChanged
Definition
-- @/lua/ge/extensions/core/audio.lua:434
M.onReplayStateChanged = function(newState)
if M.prevReplayState == newState.state and M.prevReplayPaused == newState.paused then
return
end
local paused = simTimeAuthority.getPause()
if paused then
SFXSystem.setGlobalParameter("g_GamePause", 1)
else
SFXSystem.setGlobalParameter("g_GamePause", 0)
end
M.prevReplayState = newState.state
M.prevReplayPaused = newState.paused
end
Callers
@/lua/ge/extensions/flowgraph/nodes/recording/recordReplay.lua
function C:onReplayStateChanged(state)
if state.state == 'recording' then
@/lua/ge/extensions/flowgraph/modules/missionReplayModule.lua
local currentMissionReplayFiles = nil
function C:onReplayStateChanged(state)
if lastFrameState ~= "playback" and state.state == "playback" then
@/lua/ge/extensions/freeroam/crashCamMode.lua
local function onReplayStateChanged(state)
toggleActionCam(false)