Difference between revisions of "LlGetRegionName"

From Second Life Wiki
Jump to navigation Jump to search
(EX)
(I didn't like my previous example)
Line 10: Line 10:
|constants
|constants
|examples=<pre>
|examples=<pre>
// Put this script into a bracelet for a simple reminder.
// The beginnings of a region-info script.
default
default
{
{
Line 20: Line 20:
     timer()
     timer()
     {
     {
         if(llGetRegionName() == "The Wild")
         string msg;
         {
       
            llInstantMessage(llGetOwner(), "Entered Enemy Area!");
        msg = "REGION NAME : " + llGetRegionName();
        }
          
        llSetText(msg, <0,1,0>, 1.0);
     }
     }
}
}

Revision as of 14:26, 17 May 2007