Difference between revisions of "CHANGED MEDIA"

From Second Life Wiki
Jump to navigation Jump to search
m
m
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=
<lsl>
default
{
    changed(integer change)
    {
        if (change & CHANGED_MEDIA) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims media has changed.");
        }
    }
}
</lsl>
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimMediaParams]]}}
{{LSL DefineRow||[[llSetPrimMediaParams]]}}

Revision as of 22:09, 22 May 2010

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

<lsl> default {

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

} </lsl>

Deep Notes

History

Search JIRA for related Issues

Signature

integer CHANGED_MEDIA = 0x800;