Skip to content

Instantly share code, notes, and snippets.

View madame-rachelle's full-sized avatar

Rachael Alexanderson madame-rachelle

View GitHub Profile
@madame-rachelle
madame-rachelle / Wear me to unpack.lsl
Created July 9, 2020 19:51
Wear me to unpack.lsl
// when the prim is touched, the script checks all other inventory items whether or not they're copiable
// copiable items are added to a list, if the list is not empty when all items have been checked
// the prim gives them to the touching avatar within a single folder
unpack(key target)
{
string thisScript = llGetScriptName();
list inventoryItems;
integer inventoryNumber = llGetInventoryNumber(INVENTORY_ALL);
default
{
state_entry()
{
llSetLinkPrimitiveParamsFast(LINK_ROOT, [PRIM_PHYSICS, TRUE]);
}
on_rez(integer param)
{
llResetScript();
}