LD = require("design.LevelDesignLibrary")
thisLevel = nil
player = nil
son = nil
function OnScriptLoaded(level)
  thisLevel = level
  player = game.Player.FindPlayer()
  son = game.AI.FindSon()
end
function OnStartGameFromThisLevel()
  local seq = LD.CreateCineSequence(thisLevel, thisLevel, "turnOnLTW")
  seq:WaitForFunctionTrue(DoesSkyExist)
  seq:Do(EnableLTW)
  seq:StartSequence()
  game.Level.SetVariable("CompletedCineNumber", 50)
end
function DoesSkyExist()
  return game.FindLevel("For000_Sky")
end
function EnableLTW()
  game.FindLevel("For000_Sky"):GetGameObject("ForestLeadTheWay").Child:CallScript("Enable")
  game.FindLevel("For000_Sky"):GetGameObject("ForestYouShallNotPass").Child:CallScript("Enable")
end
function OnSaveCheckpoint(level)
  return {}
end
function OnRestoreCheckpoint(level, savedInfo)
end
