home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / palshad.mod / objects / keya.obj / script.txt < prev    next >
Text File  |  2000-01-27  |  551b  |  19 lines

  1. // ZZ> This function makes an item fall to the floor when spawned
  2. IfSpawned                //
  3.   MakeAmmoKnown                  //
  4.   tmpargument = ACTIONJB          //
  5.   DoAction                  //
  6.   KeepAction                  //
  7. IfDropped                // Make it lie on floor
  8.   KeepAction                  //
  9. IfHitGround                // Do a sound
  10.   tmpargument = 0              //
  11.   tmpdistance = rand & 2047 + 7000      //
  12.   PlaySound                  //
  13. IfGrabbed                // The model is pretty bad...
  14.   SetTargetToWhoeverIsHolding          //
  15.   IfTargetIsAPlayer              //
  16.     tmpargument = 0                //
  17.     SendMessageNear                //
  18. End                    // All done
  19.