Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

scripting needed, neet to give out landmarks

Almightypickle Yue
Registered User
Join date: 1 Jan 2007
Posts: 3
03-05-2007 17:04
i need some scripting so i can have somebody touch a object and it will offer to TP them to somewhere, does anybody know how to help me with this, thanks!

EDIT:
also, how would i put a landmark to a location inside a notecard? thanks!
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
03-05-2007 17:51
From the wiki : llGiveInventory()
CODE

default {
touch_start(integer total_number) {
llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_LANDMARK, 0));
}
}

Make a cube, add the landmark to the contents, add the above script. You're done.

To drop a landmark into a notecard... open the notecard, open yuor inventory, drag and drop the landmark frmo your inventory onto the notecard.