Load URL

From Second Life Wiki
Revision as of 09:48, 21 September 2008 by Emmas Seetan (talk | contribs) (New page: == What it does == Change the URL inside the script and put it inside a prim so that when it is touched a dialog will pop up and you can visit the URL inside the script. Good for stores, ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

What it does

Change the URL inside the script and put it inside a prim so that when it is touched a dialog will pop up and you can visit the URL inside the script. Good for stores, blogs, ATM's and such.

<lsl>//Emmas Seetan
//21 September 17:06

string text = "Visit the Second Life Wiki!"; //Floating text
string url = "https://wiki.secondlife.com/"; //must include 'http://'

default
{
    touch_start(integer num_detected)
    {
        llLoadURL(llDetectedKey(0), text, url); //Loads the URL
    }
}</lsl>