IfSpawned
  tmpargument = 2
  SetState
  tmpargument = 150
  SetTime

IfTimeOut
  IfStateIs2
    tmpargument = 0
    SetState

//Do the trap!
IfStateIs0
  tmpx = weight
  tmpy = 10
  IfXIsLessThanY
    tmpx = selfx - 175
    tmpy = selfy
    tmpdistance = selfz + 1024
    tmpargument = 53
    SpawnExactCharacterXYZ
      tmpargument = 0
      PlayFullSound
      tmpargument = 1
      SetState
      tmpargument = 0
      SendMessage

End
