home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / healer.mod / objects / whip.obj / script.txt < prev    next >
Text File  |  1999-09-25  |  1KB  |  42 lines

  1. // ZZ> This function makes an item fall to the floor when spawned
  2. IfSpawned                //
  3.   tmpargument = ACTIONJB          //
  4.   DoAction                  //
  5.   KeepAction                  //
  6.   MakeCrushValid
  7. IfCrushed
  8.   tmpx = selfx
  9.   tmpy = selfy
  10.   tmpdistance = selfz
  11.   tmpargument = 1
  12.   SpawnExactParticle
  13.   SpawnExactParticle
  14.   SpawnExactParticle
  15.   SpawnExactParticle
  16.   GoPoof
  17.   tmpargument = 1
  18.   SendMessageNear
  19. IfDropped                // Make it lie on floor
  20.   KeepAction                  //
  21. IfHitGround                // Make a sound
  22.   tmpargument = 1              //
  23.   tmpdistance = rand & 2047 + 10000      //
  24.   PlaySound                  //
  25. IfTakenOut                // Make a sound
  26.   SetTargetToWhoeverIsHolding          //
  27.   IfTargetIsAPlayer              //
  28.     tmpargument = 2              //
  29.     SendMessageNear              //
  30. IfGrabbed                // Tell them what they've won...
  31.   SetTargetToWhoeverIsHolding          //
  32.   IfTargetIsAPlayer              //
  33.     tmpargument = 0              //
  34.     SendMessageNear              //
  35. IfUsed
  36.   tmpargument = 40
  37.   SetReloadTime
  38.   tmpargument = 0
  39.   tmpdistance = rand & 1027 + 10700
  40.   PlaySound
  41. End                    // All done
  42.