// Check the exit passage
IfTimeOut
  DisableExport
  tmpargument = passage
  SetTargetToWhoeverIsInPassage
    IfTargetIsAPlayer
      ClearEndMessage
      tmpargument = 0
      AddEndMessage
      tmpargument = 1
      AddEndMessage
      tmpargument = 2
      AddEndMessage
      EnableExport
      BeatModule
      tmpargument = 0
      AddEndMessage
      tmpargument = [BEAT]
      AddIDSZ
      EndModule
  tmpargument = 10
  SetTime
End
