Wednesday, August 11, 2010

lsl - Giving a notecard


I was wading back into the Second Life waters after volunteering to help build an art gallery for a group at work. I was also working on a couple of sculptures.

One of the things I wanted to add was to have my object give a notecard to someone who clicked on it.

This was simple.
First. Create a new notecard in your inventory.
Drag it into the content of the object you want to give that notecard.
Let's say it's called "Light Hand Sculpture - notecard"

Add this script and it will give the notecard to someone who clicks on your object.

default
{
state_entry()
{
}
touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0), "Light Hand Sculpture - notecard");

}
}


Here is the sculpture I was working on. It is on a private sim so I can't give you a link to see it. Sorry.


"Light Hand"

No comments: