Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- // set sit target, otherwise this will not work
- llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
- }
- changed(integer change)
- {
- if (change & CHANGED_LINK)
- {
- key av = llAvatarOnSitTarget();
- if (av) // evaluated as true if key is valid and not NULL_KEY
- {
- llGiveInventory(av, llGetInventoryName(INVENTORY_NOTECARD, 0));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement