Difference between revisions of "CHANGED REGION START"

From Second Life Wiki
Jump to navigation Jump to search
m (Might not be the users simulator.)
m (some reformatting of example script)
Line 11: Line 11:
     changed(integer change)
     changed(integer change)
     {
     {
        if (change & CHANGED_REGION_START) //note that it's & and not &&... it's bitwise!
    // note that it's & and not &&... it's bitwise!
        if (change & CHANGED_REGION_START)
         {
         {
             llInstantMessage(llGetOwner(), llGetRegionName() + " has restarted.");
             key owner = llGetOwner();
            string region = llGetRegionName();
            llInstantMessage(owner, "Region '" + region + "' has restarted.");
         }
         }
     }
     }

Revision as of 11:07, 8 October 2012

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)
   {
   //  note that it's & and not &&... it's bitwise!
       if (change & CHANGED_REGION_START)
       {
           key owner = llGetOwner();
           string region = llGetRegionName();
           llInstantMessage(owner, "Region '" + region + "' 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;