LD = require("design.LevelDesignLibrary")
local player
local sindriMusic = false
local banterInProgress = false
function OnScriptLoaded(level)
  player = game.Player.FindPlayer()
end
function OnUpdate(level)
  if game.World.IsInsideCameraZone(player.WorldPosition, "CamZone_Temp_WallPress") and player:HasMarker("WallPress") then
    game.Camera.SubmitCameraByName("ENV_Vista_Peak740_WallPress_Temp")
  end
end
function BurnableChestActivate()
  GameObjects.coffin_tier4_peak780_1.LuaObjectScript.Enable()
end
function SCA_WallShimmy_720_Enable()
  GameObjects.SCA_WallShimmy_720.LuaObjectScript.Enable()
end
function SCA_WallShimmy_740_Enable()
  GameObjects.SCA_WallShimmy_740.LuaObjectScript.Enable()
end
function SindriSonJerkApproachBanter()
  local completedCine = game.Level.GetVariable("CompletedCineNumber")
  if 450 <= completedCine and completedCine <= 470 and banterInProgress == false then
    game.Audio.PlayBanterNonCritical("JerkApproach", function()
      LD.CallFunctionAfterDelay(BanterDone, 3)
    end)
    banterInProgress = true
  end
end
function BanterDone()
  banterInProgress = false
end
function LoadCheck_Peak720()
  game.UI.LoadCheck("Peak720_SummitAscentHUB")
end
function LoadCheck_Peak740()
  game.UI.LoadCheck("Peak740_SummitPeak")
end
function Peak780_FirstTripComplete()
end
function sindriHallMusic()
  local cineNum = game.Level.GetVariable("CompletedCineNumber")
  if 460 <= cineNum and cineNum < 470 and sindriMusic == false then
    game.Audio.StartMusic("SND_MX_TRANS_TO_IDLE")
    sindriMusic = true
  end
end
