local playedSMBeachChiselDoor = false
function OnScriptLoaded(level, obj)
  game.SubObject.Sleep(obj)
end
function OnSaveCheckpoint(level, obj)
  return {playedSMBeachChiselDoor = playedSMBeachChiselDoor}
end
function OnRestoreCheckpoint(level, obj, savedInfo)
  playedSMBeachChiselDoor = savedInfo.playedSMBeachChiselDoor
end
function ChiselCheck()
  if not playedSMBeachChiselDoor and game.Wallets.GetResourceValue("HERO", "ChiselUnlock") <= 0 then
    game.Audio.PlayBanter("stn_SMBeachChiselDoor")
  end
  playedSMBeachChiselDoor = true
end
