require("design.LevelDesignLibrary")
local timer = require("level.timer")
local collisionCheck = require("camera.collisioncheck")
local playerCreature, myTimer, penDepth, verticalP, horizontalP, targetMarker00, objectToTrigger, toTrigger
local firstEnter = false
local firstEnter01 = false
local triggerGO00
function OnScriptLoaded(level, zone)
  penDepth = 0.6
  verticalP = 0.75
  horizontalP = 0
  targetMarker00 = "Marker_BestIntentions"
  toTrigger = "peak_140_BestIntentions"
  triggerGO00 = level:FindSingleGameObject(targetMarker00)
  playerCreature = game.Player.FindPlayer()
end
function OnUpdate(level, zone)
  if triggerGO00 == nil then
    triggerGO00 = level:FindSingleGameObject(targetMarker00)
  end
  if playerCreature:InsideZone(zone:GetName()) == true then
    if firstEnter01 == false then
      firstEnter01 = true
    end
    local safe00 = collisionCheck.isTargetInFrustumUnobstructed(triggerGO00:GetWorldPosition(), horizontalP, verticalP, penDepth)
    if firstEnter == false and safe00 == true then
      game.Audio.PlayBanter(toTrigger)
      firstEnter = true
    end
  end
end
function OnUseWorld(level, go)
end
