Unofficial LSL Reference

[[functions:llavataronlinksittarget]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:llavataronlinksittarget [2015-01-19 15:01 SLT]
sei better wording for comment
functions:llavataronlinksittarget [2015-09-22 11:50 SLT] (current)
sei style
Line 6: Line 6:
 </​code>​ </​code>​
  
-Get the key of the avatar occupying the sit target of the given linked prim, or [[constants/NULL_KEY]] if none.+Get the key of the avatar occupying the sit target of the given linked prim, or $lct[NULL_KEY] if none.
  
 ===== Parameters ===== ===== Parameters =====
Line 15: Line 15:
 ===== Return value ===== ===== Return value =====
  
-The key of the avatar occupying the sit target of the prim in the given link number, or [[constants/NULL_KEY]] if none.+The key of the avatar occupying the sit target of the prim in the given link number, or $lct[NULL_KEY] if none.
  
 ===== Notes ===== ===== Notes =====
  
   * Sitting on a single prim effectively makes a linked object of two prims. That makes the root prim immediately change its number from 0 to 1, therefore checking ''​llAvatarOnLinkSitTarget(0)''​ makes no sense for single prims.   * Sitting on a single prim effectively makes a linked object of two prims. That makes the root prim immediately change its number from 0 to 1, therefore checking ''​llAvatarOnLinkSitTarget(0)''​ makes no sense for single prims.
-  * This function will also return ​**NULL_KEY** if there is no sit target set for the given link, even if there is someone sitting in the prim. +  * This function will also return ​$ct[NULL_KEYif there is no sit target set for the given link, even if there is someone sitting in the prim. 
-  * **NULL_KEY** is also returned if the link number is positive and out of range.+  * $ct[NULL_KEYis also returned if the link number is positive and out of range.
   * If the script is in the root prim:   * If the script is in the root prim:
-    * Any link number between -2147483646 and -1 other than **LINK_THIS** (-4) seems to refer to link 2. +    * Any link number between -2147483646 and -1 other than $lct[LINK_THIS(-4) seems to refer to link 2. 
-    * Link numbers 0, -2147483647 and -2147483648 return NULL_KEY.+    * Link numbers 0, -2147483647 and -2147483648 return ​$ct[NULL_KEY].
   * If the script is in a child prim:   * If the script is in a child prim:
-    * Any link number between -2147483647 and 1 other than **LINK_THIS** (-4) seem to refer to the root prim. (The official wiki incorrectly states that ''​llAvatarOnLinkSitTarget(0)''​ will always be **NULL_KEY**. That is only true for scripts that are in a single prim object or in the root prim of a linkset.) +    * Any link number between -2147483647 and 1 other than $ct[LINK_THIS(-4) seems to refer to the root prim. (The official wiki incorrectly states that ''​llAvatarOnLinkSitTarget(0)''​ will always be $ct[NULL_KEY]. That is only true for scripts that are in a single prim object or in the root prim of a linkset.) 
-    * Link number -2147483648 returns NULL_KEY.+    * Link number -2147483648 returns ​$ct[NULL_KEY].
  
 ===== Short examples ===== ===== Short examples =====
Line 66: Line 66:
 ===== See also ===== ===== See also =====
  
-  * [[llAvatarOnSitTarget]] is the same for the current prim. Equivalent to ''​llAvatarOnLinkSitTarget(LINK_THIS)''​. +  * $lfn[llAvatarOnSitTarget] is the same for the current prim. Equivalent to ''​llAvatarOnLinkSitTarget(LINK_THIS)''​. 
-  * [[llSitTarget]] sets (or clears, if the vector is ZERO_VECTOR) the sit target of the current prim. +  * $lfn[llSitTarget] sets (or clears, if the vector is $lct[ZERO_VECTOR]) the sit target of the current prim. 
-  * [[llLinkSitTarget]] sets (or clears, if the vector is ZERO_VECTOR) the sit target for any prim in the linkset. +  * $lfn[llLinkSitTarget] sets (or clears, if the vector is $lct[ZERO_VECTOR]) the sit target for any prim in the linkset. 
-  * [[llSetSitText]] sets the text that appears in the menu when someone right clicks+  * $lfn[llUnSitunsits ​the given agent
-  * [[llUnSit]] unsits ​the given agent. +  * $lfn[llGetNumberOfPrimsgets the number of prims + sitting avatars in an object.