IfSpawned
  tmpargument = rand % 15 + 35    //time between every meteor
  SetTime
  tmpargument = 10                //number of meteors to spawn
  SetState

IfTimeOut
  tmpargument = 20    //time between every meteor
  SetTime

  //Spawn one meteor
  tmpargument = 0
  SetTargetToNearestEnemy
    tmpdistance = targetz
    tmpx = rand % 250 + targetx - 125
    tmpy = rand % 250 + targety - 125
  Else
    tmpdistance = selfz
    tmpx = rand % 250 + selfx - 125
    tmpy = rand % 250 + selfy - 125
  SpawnExactParticle

  tmpargument = selfstate - 1		//1 meteor used
  SetState
  
  IfStateIs0
    GoPoof
  
// Finish up
End
