// ZZ> This function makes an item fall to the floor when spawned
IfSpawned				//
  tmpargument = ACTIONJB		  //
  DoAction				  //
  KeepAction				  //
  MakeCrushValid
  ReaffirmCharacter

IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 5
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear
IfDropped				// Make it lie on floor
  KeepAction				  //

IfHitGround				// Make a sound
  tmpargument = 2			  //
  PlaySound				  //

IfTakenOut
  SetTargetToWhoeverIsHolding		  //
  ReaffirmCharacter
  IfTargetIsAPlayer
    tmpargument = 2
    SendMessageNear

IfGrabbed				// Tell them what they've won...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  //
    tmpargument = 0			  //
    SendMessageNear			  //

//Remove if out of charges
IfAmmoOut
  GoPoof
  tmpargument = 3
  SendMessageNear

End					// All done
