SL Notecard Giver

From SimTeach

Jump to: navigation, search

Overview

This is a simple script which will give an inventory item to the avatar that touches it.

Place this script in an object that has a Notecard in it. In the example below the Notecard name is "NOTECARD TITLE HERE". Be sure to change this to the name of the notecard you have within the object.


default
{
    touch_start(integer total_number)
    {
        llGiveInventory(llDetectedKey(0), "NOTECARD TITLE HERE");
    }
}

Other Uses

This can be used to give any inventory item to the avatar that touches it simply by placing the item in the same object and changing the name to match the item.

Personal tools