Difference between revisions of "CHANGED TELEPORT"

From Second Life Wiki
Jump to: navigation, search
(added details for CHANGED_TELEPORT)
m
Line 5: Line 5:
 
|desc=The avatar this object is attached to has teleported. This event only occurs in the root prim of an attachment when the user has teleported. This event does not occur in child prims of attachments, nor does it occur due to a "sit teleport". If the user teleports into a parcel where their scripts are disabled then the CHANGED_TELEPORT event is dropped and does not occur even if the user moved to a script-enabled parcel.
 
|desc=The avatar this object is attached to has teleported. This event only occurs in the root prim of an attachment when the user has teleported. This event does not occur in child prims of attachments, nor does it occur due to a "sit teleport". If the user teleports into a parcel where their scripts are disabled then the CHANGED_TELEPORT event is dropped and does not occur even if the user moved to a script-enabled parcel.
 
|examples=
 
|examples=
<pre>
+
<lsl>default
default
+
 
{
 
{
 
     changed(integer change)
 
     changed(integer change)
Line 15: Line 14:
 
         }
 
         }
 
     }
 
     }
}
+
}</lsl>
</pre>
+
 
|functions
 
|functions
 
|events=
 
|events=

Revision as of 09:29, 17 July 2008

Description

Constant: integer CHANGED_TELEPORT = 0x200;

The integer constant CHANGED_TELEPORT has the value 0x200

The avatar this object is attached to has teleported. This event only occurs in the root prim of an attachment when the user has teleported. This event does not occur in child prims of attachments, nor does it occur due to a "sit teleport". If the user teleports into a parcel where their scripts are disabled then the CHANGED_TELEPORT event is dropped and does not occur even if the user moved to a script-enabled parcel.

Related Articles

Events

•  changed

Examples

<lsl>default {

   changed(integer change)
   {
       if (change & CHANGED_TELEPORT) //note that it's & and not &&... it's bitwise!
       {
           llOwnerSay("The object has been teleported while attached.");
       }
   }

}</lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_TELEPORT = 0x200;