Difference between revisions of "CHANGED REGION START"

From Second Life Wiki
Jump to navigation Jump to search
(yeah, that example couldn't work. thanks for fixing it.)
Line 12: Line 12:
     {
     {
         if (change & CHANGED_REGION_START) //note that it's & and not &&... it's bitwise!
         if (change & CHANGED_REGION_START) //note that it's & and not &&... it's bitwise!
         { //As of October 25, 2009 on the llOwnerSay only works while you are in the same region.
         {
          //If you Teleported to another region and waiting for that message, try the llInstantMessage line instead.
            llOwnerSay("The region has come online.");
             llInstantMessage(llGetOwner(),llKey2Name(llGetOwner()) + ", your region, " + llGetRegionName() + " has restarted.");
             llInstantMessage(llGetOwner(),llKey2Name(llGetOwner()) + ", your region, " + llGetRegionName() + " has restarted.");
         }
         }

Revision as of 12:14, 26 October 2009

Description

Constant: integer CHANGED_REGION_START = 0x400;

The integer constant CHANGED_REGION_START has the value 0x400

The region containing the object has just come online.

Related Articles

Functions

•  llRequestSimulatorData

Events

•  changed

Examples

<lsl> default {

   changed(integer change)
   {
       if (change & CHANGED_REGION_START) //note that it's & and not &&... it's bitwise!
       {
           llInstantMessage(llGetOwner(),llKey2Name(llGetOwner()) + ", your region, " + llGetRegionName() + " has restarted.");
       }
   }

} </lsl>

Notes

When a region is (re)started all HTTP server URLs are automatically released and invalidated.

Deep Notes

History

Search JIRA for related Issues

Signature

integer CHANGED_REGION_START = 0x400;