# CHANGED_REGION

*LSL constant*

```lsl
integer CHANGED_REGION = 0x100;
```

Constant groups: [ChangeType](/constants/groups/ChangeType/)

The object has changed region by crossing a region boundary (or by teleporting, if attached). This event only occurs in the root prim of a linkset. This event does not occur in child prims of objects when they cross a region boundary.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    changed(integer change)
    {
        if (change & CHANGED_REGION) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The region the object is in has changed.");
        }
    }
}
```

</details>

## See also

### Functions

- [llGetRegionName](/functions/llGetRegionName/)

### Events

- [changed](/events/changed/)

---

*Source: [CHANGED REGION](https://wiki.secondlife.com/wiki/CHANGED_REGION) on the Second Life Wiki. Content from the Second Life Wiki article CHANGED REGION (revision 1213367, 2023-02-11), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/CHANGED_REGION/
