GE Lua Documentation

Press F to search!

onMissionInfoChangedState

Definition


-- @/lua/ge/extensions/core/sounds.lua:171

local function onMissionInfoChangedState(fromState, toState, content)
  if not missionMarkerInteraction then
    return
  end

  if toState == 'opened' then
    interactingWithMissionUI = true
  elseif fromState == 'opened' and toState == 'closed' then
    interactingWithMissionUI = false
    gameAudioBlurValue = 0
  end
  audioBlurLog('I','AUDIO',string.format("missionInfo changed: %s => %s  gameAudioBlurValue = %0.1f (interactingWithMissionUI = %s)", tostring(fromState), tostring(toState), gameAudioBlurValue, tostring(interactingWithMissionUI)))
end

Callers