# CHANGED_OWNER

*LSL constant*

```lsl
integer CHANGED_OWNER = 0x80;
```

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

The object has changed owners. This event occurs in the original object when a user takes it or takes a copy of it or when the owner deeds it to a group. The event occurs in the new object when it is first rezzed.

Counter-intuitively, this event also occurs in the *original* object when it is purchased or a copy of it is purchased (although the original object does *not* in fact change owner). The event does not occur in the original object when its contents are purchased.

## Examples

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

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

</details>

## Known issues

- [VWR-12880](https://jira.secondlife.com/browse/VWR-12880): [CHANGED_OWNER](/constants/CHANGED_OWNER/) in LSL script always triggered when detaching and attaching again an object

## See also

### Events

- [changed](/events/changed/)

---

*Source: [CHANGED OWNER](https://wiki.secondlife.com/wiki/CHANGED_OWNER) on the Second Life Wiki. Content from the Second Life Wiki article CHANGED OWNER (revision 1213251, 2023-02-03), CC BY-SA 3.0.*

---

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