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

//--------------------------------------------------------------------------------
IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 1
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear  

//--------------------------------------------------------------------------------
//Say oops, that's kursed
IfNotDropped
  SetTargetToWhoeverIsHolding
  tmpargument = 3
  SendMessageNear
//IfNotPutAway
//  SetTargetToWhoeverIsHolding
//  tmpargument = 4         //No longer needed, this is handled by the sourcecode now...
//  SendMessageNear
  
//--------------------------------------------------------------------------------
IfDropped				// Make it lie on floor
  KeepAction				  //
  
//--------------------------------------------------------------------------------
IfGrabbed				// Tell them what they've won...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  //
    tmpargument = 0			  //
    SendMessageNear
    
//--------------------------------------------------------------------------------
IfTakenOut				// Do the unsheathe sound
  tmpargument = 2			  //
  PlaySound				  //
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  
    tmpargument = 2			  
    SendMessageNear			  

//--------------------------------------------------------------------------------
IfHitGround				// Make a sound
  tmpargument = 1			  
  PlaySound				  
  
//--------------------------------------------------------------------------------
End					// All done
//--------------------------------------------------------------------------------
