Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

what is llFunction to add landmarks?

BETLOG Hax
Geek
Join date: 22 May 2007
Posts: 91
05-28-2007 13:16
What is the LSL function(s) to offer the avatar a landmark?
I've been to plenty of places that pop a landmark offer up when you arrive, or that just insert them in your inventory, but I can't figure out which llFunction does it.
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
05-28-2007 13:28
llGiveInventory
BETLOG Hax
Geek
Join date: 22 May 2007
Posts: 91
05-28-2007 13:34
As usual, I had searched 8 pages of search results, looked extensively in 2 different wikis, found some useful looking functions but finally gave up and posted the question here, and about 30 seconds later I found exactly what I was after.
...thanks for the reply though.

//add a landmark inventory item to a prim, add this code, and touch.
default
{
state_entry()
{

}

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