Skip to content

Instantly share code, notes, and snippets.

@DaxDupont
Created May 4, 2016 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaxDupont/447ecefe670d7d9a2a7e724d553398c8 to your computer and use it in GitHub Desktop.
Save DaxDupont/447ecefe670d7d9a2a7e724d553398c8 to your computer and use it in GitHub Desktop.

Limb Dropper Readme

Welcome to the readme for the Limb Dropper scripts.

Installation

Make sure that the item is modify and copy before you start!

  1. Take a copy of the limb or item you want to drop on removal and rez it out on the floor.
  2. Put the DroppedLimb.lsl script in the copy.
    • Incase it's a fully rigged mesh make sure to link a transparent prim to the limb as the non-root prim to act as a click surface as rigged meshes can't be clicked.
  3. Take it back into the inventory.
  4. Rez the attachment that will drop the limb.
  5. Put the "Dropped item" object in the attachment.
  6. Put the AttachedLimb.lsl into the attachment.
    • Incase you linked the prim, now would be a good time to size and move it properly.
  7. Done!

Advanced usage

There's a bunch of descriptions you can set in the attached object to change behaviour of the script:

Linknum

linknum allows you to set the linknumber that gets alpha'd. The default is -4 (Which is LINK_THIS).

Time

time allows you to change the time the limb or item will stay alpha'd and rezzed.

Name

name allows you define a name that will be broadcasted on a channel defined by the following function with llGetOwner() and the app ID being 922:

// Credit to Iain Maltz http://wiki.secondlife.com/wiki/UUID2Channel
integer Key2AppChan(key ID, integer App) {
    return 0x80000000 | ((integer)("0x"+(string)ID) ^ App);
}

All these follow the following syntax in the description: linknum=1//name=rightarm//time=360
!!Note that you should rez it on the ground before changing the description or SL will reset it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment