Difference between revisions of "CHANGED MEDIA"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LSL_Generic/pre-release|function|server-release=1.33.0|client-release=1.24.4}}{{LSL Constant
{{LSL Constant
|name=CHANGED_MEDIA
|name=CHANGED_MEDIA
|type=integer
|type=integer
Line 5: Line 5:
|desc={{LSLGC|Prim Media}} on the prim has changed.
|desc={{LSLGC|Prim Media}} on the prim has changed.
|notes
|notes
|examples
|examples=
<source lang="lsl2">
default
{
    changed(integer change)
    {
        if (change & CHANGED_MEDIA) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims media has changed.");
        }
    }
}
</source>
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimMediaParams]]}}
{{LSL DefineRow||[[llSetPrimMediaParams]]}}
Line 15: Line 27:
*Bug: {{Jira|SVC-4939}} - SVN Changeset 2816 in Trunk is immature
*Bug: {{Jira|SVC-4939}} - SVN Changeset 2816 in Trunk is immature
|cat1=Prim Media
|cat1=Prim Media
|cat2
|cat2=Media
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 16:16, 22 January 2015

Description

Constant: integer CHANGED_MEDIA = 0x800;

The integer constant CHANGED_MEDIA has the value 0x800

Prim Media on the prim has changed.

Related Articles

Functions

•  llSetPrimMediaParams
•  llClearPrimMedia

Events

•  changed

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_MEDIA) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims media has changed.");
        }
    }
}

Deep Notes

History

Search JIRA for related Issues

Signature

integer CHANGED_MEDIA = 0x800;