Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Deliver notecard from inventory on touch

Spluuda Hirvi
Registered User
Join date: 15 Aug 2007
Posts: 3
12-27-2007 19:07
Sorry - very simple question.
I just need the code so that a box when touched will deliver the notecard in its inventory to the avatar that touched it. I am sure this has been done millions of times before, but cannot find it. Thanks for your help.
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-27-2007 19:15
default
{
touch_start(integer num)
{
llGiveInventory(llDetectedKey(0),"[notecard name]";);
}
}
}

that should do it