Welcome to the readme for the Limb Dropper scripts.
Make sure that the item is modify and copy before you start!
- Take a copy of the limb or item you want to drop on removal and rez it out on the floor.
- 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.
- Take it back into the inventory.
- Rez the attachment that will drop the limb.
- Put the "Dropped item" object in the attachment.
- Put the AttachedLimb.lsl into the attachment.
- Incase you linked the prim, now would be a good time to size and move it properly.
- Done!
There's a bunch of descriptions you can set in the attached object to change behaviour of the script:
linknum allows you to set the linknumber that gets alpha'd. The default is -4 (Which is LINK_THIS).
time allows you to change the time the limb or item will stay alpha'd and rezzed.
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!!