// ZZ> This function makes an item fall to the floor when spawned
IfSpawned				//
  MakeAmmoKnown				  //
  tmpargument = ACTIONJB		  //
  DoAction				  //
  KeepAction				  //
IfDropped				// Make it lie on floor
  KeepAction				  //
IfHitGround				// Do a sound
  tmpargument = 0			  //
  PlaySound				  //
IfGrabbed				// The model is pretty bad...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  //
    tmpargument = 0			    //
    SendMessageNear			    //
    
//Magic sparklies
IfHeld
  DoNothing
Else
  IfTimeOut
    tmpargument = 150
    SetTime
    
    tmpargument = 0
    tmpx = selfx
    tmpy = selfy
    tmpdistance = selfz
    SpawnExactParticle
    
End					// All done
