Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Landmark HUD

Ruadhri Otoole
Registered User
Join date: 6 Apr 2007
Posts: 2
01-28-2008 17:55
To make it a little easier to find my most commonly used landmarks, I'm trying to create a HUD into which I can load the landmarks, which will then be displayed by name as dialog buttons. This of course in the absence of a llTeleport function, which would be truly wonderful.

However, I am unable to figure out how to "launch" an individual landmark, such that I just have to click the associated dialog button and I'm teleported to the destination. Can anyone enlighten me as to the most efficient way of achieving this?

Thanks in advance.
Dina Vanalten
Registered User
Join date: 24 Dec 2006
Posts: 268
01-28-2008 18:34
I bought a Huddles LM Pal that does something like that. There are only two ways that I know of for the HUD to work and that is 1. Display the landmark so you can click on the tp, and 2. Bring up the map so you can click on the tp.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
01-28-2008 19:03
Take a look in the wiki at : llMapDestination

http://www.cheesefactory.us/lslwm/llMapDestination.htm
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
Been done
01-28-2008 19:58
I just created such a HUD that holds 100 landmarks. Check out Beam-Me-HUD. SLURL http://slurl.com/secondlife/Sekmet/170/240/60
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-28-2008 20:02
I made one for myself, looks a bit like this

CODE

list gLstLandMarks;
integer gIntLMTotal;
integer gIntLMCurrent;


default
{
state_entry()
{
integer i;
gIntLMTotal = llGetInventoryNumber( INVENTORY_LANDMARK );
for (i = gIntLMTotal; i > 0; --i){
gLstLandMarks = [llGetInventoryName( INVENTORY_LANDMARK, i - 1 )] + gLstLandMarks;
}
llSetText( llList2String( gLstLandMarks, 0 ), <1,0,0>, 1 );
llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
integer vIntPartTouched = llDetectedLinkNumber( 0 );
if (vIntPartTouched == 2){
if ( gIntLMTotal == ++gIntLMCurrent ){
gIntLMCurrent = 0;
}
}
else if (vIntPartTouched == 3){
if ( 0 > --gIntLMCurrent ){
gIntLMCurrent = gIntLMTotal - 1;
}
}
else{
llRequestInventoryData( llList2String( gLstLandMarks, gIntLMCurrent ) );
}
llSetText( llList2String( gLstLandMarks, gIntLMCurrent ), <1,0,0>, 1 );
}

dataserver( key vKeyQuery, string vStrData ){
llMapDestination( llGetRegionName(), (vector)vStrData, ZERO_VECTOR );
}

changed( integer vBitChanged ){
if (vBitChanged & (CHANGED_OWNER | CHANGED_INVENTORY)){
llResetScript();
}
}
}


I put it in a 5 prim hud attachment I made, prims #2 and #3 are forward and back buttons the rest was just to make the background look nice for the hover text
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Ruadhri Otoole
Registered User
Join date: 6 Apr 2007
Posts: 2
Thanks :)
01-30-2008 18:03
Thanks all for your very helpful replies.