JenniferC String Posted February 28, 2012 Share Posted February 28, 2012 Hi. Im not so good in scripting so far :) So i would need your help please^^I have the script to load an URL on touch. Means when someone touches the prim a menu pops up and you can choose if you want to go to the page or you can cancel. string text = "Visit my Website"; string url = "http://MyWebsite.com"; //must include 'http://' default { touch_start(integer num_detected) { llLoadURL(llDetectedKey(0), text, url); } } I just wanted to ask if its possible to get the same effect (the upcoming menu) on rezz. ?? So when someone rezzes a prim the menu pops up and you ccan choose if you want to go to the site or cancel.If its possible what do i need to change in the script ? Thanks much for your help <3 Link to comment Share on other sites More sharing options...
Lucinda Bulloch Posted February 28, 2012 Share Posted February 28, 2012 string text = "Visit my Website";string url = "http://MyWebsite.com"; //must include 'http://'default{ on_rez(integer p) { llLoadURL(llGetOwner(), text, url); }} Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted February 28, 2012 Share Posted February 28, 2012 Simply move the load function to the on_rez event string text = "Visit my Website";string url = "http://MyWebsite.com"; //must include 'http://'default{ on_rez(integer start_param) { llLoadURL(llGetOwner(), text, url); }} Since the rez event doesn't pass a parameter that gives you a key of an ava, you have to use a different way to pass a key - most likely this would be the owner as in the example Link to comment Share on other sites More sharing options...
Lucinda Bulloch Posted February 28, 2012 Share Posted February 28, 2012 lol, beat you to it. Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted February 28, 2012 Share Posted February 28, 2012 *snickers and pokes out his tongue at Lucinda* Link to comment Share on other sites More sharing options...
JenniferC String Posted February 28, 2012 Author Share Posted February 28, 2012 Aww thank you very much. They work perfectly ^^ hmm and it was sooo easy Anyway.. thanks again.. At least i learned something Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now