Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Link to a website when touched...

Thormec Micheline
Registered User
Join date: 16 Oct 2006
Posts: 46
05-30-2008 07:18
Sorry if this is a "not another one" type of query.

I want an avatar to be able to touch an object and be routed to a website. Is there a program out there to do that?

Thanks.
Kirrineth Dragonash
Registered User
Join date: 8 Aug 2007
Posts: 4
05-30-2008 16:55
LSL includes a function, llLoadUrl that will prompt the Avatar for permission and then load the selected webpage.

From the LSL Wiki:

CODE

default
{
touch_start(integer num_detected)
{
key gAvatarKey = llDetectedKey(0);
llLoadURL(gAvatarKey, "View the official Second Life website.", "http://www.secondlife.com");
}
}