local thisObj
function OnScriptLoaded(level, obj)
  thisObj = obj
  game.SubObject.Sleep(obj)
  game.SubObject.SetForgetOnCheckpoint(obj)
end
function StartSlam()
  thisObj:StartAnimation({Animation = "Slam"})
  thisObj:PlayAnimationToFrame(70)
  thisObj:OnAnimationDone(GameObjects.spikeTrap_control, "HitGrate")
  GameObjects.finalgrate.Child:PlayAnimationToFrame(70)
end
function SlamDown()
  thisObj:PlayAnimToEnd()
end
