Unofficial LSL Reference

[[functions:llsamegroup]]


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:llsamegroup [2015-01-10 17:27 SLT]
sei format and other changes
functions:llsamegroup [2015-02-04 14:15 SLT] (current)
sei or -> or if
Line 14: Line 14:
 ===== Result ===== ===== Result =====
  
-Returns [[constants/TRUE]] if the user defined ​by **id** has the same group active ​that the prim with this script ​is assigned to, or deeded to, or if the object of key id is assigned to the same group.+Returns ​$lct[TRUE] if the user or object referenced ​by $prm[id] is in the region and has the same group active ​as the prim with this script ​(including the group it'​s ​deeded to if deeded).
  
-Returns [[constants/FALSE]] if the user or object is not currently in the same region, or if the assigned group differs.+Returns ​$lct[FALSE] ​if the assigned group differs, or if the user or object is not currently in the same region.
  
 ===== Notes ===== ===== Notes =====
  
-  * This function will also return ​**TRUE** if the user/object of key id has no active group, and the prim containing the script is not assigned to any group. +  * This function will also return ​$ct[TRUEif the user/object of key id has no active group, and the prim containing the script is not assigned to any group. 
-  * **TRUE** is also returned if this object is not assigned to any group, and the function is called with an argument of [[constants/NULL_KEY]]. +  * $ct[TRUEis also returned if this object is not assigned to any group, and the function is called with an argument of $lct[NULL_KEY]. 
-  * When linking several prims each assigned to a different group, the group of each individual prim will be preserved. In that case, the group of the prim the script is on, is the one that counts for this function, thus making it possible to check several groups with one single object. The group the root prim is assigned to is the one that counts for building rights, etc. Note, also that if the object is then assigned to a new group, the groups in the individual prims will be lost. Re-rezzing will also cause the groups to be lost.+  * When linking several prims each assigned to a different group, the group of each individual prim will be preserved. In that case, the group of the prim the script is on, is the one that counts for this function, thus making it possible to check several groups with one single object. The group the root prim is assigned to is the one that counts for building rights, etc. Note, also that if the object is then assigned to a new group, the groups in the individual prims will be lost. Re-rezzing ​or attaching the object ​will also cause the groups to be lost, and assigned to the current group of the rezzer (avatar or object).
  
 ===== Short examples ===== ===== Short examples =====
Line 62: Line 62:
 ===== See also ===== ===== See also =====
  
-  * [[llDetectedGroup]] is a shortcut that can be used inside [[events/detection]] events. +  * $fn[llDetectedGroup] is a shortcut that can be used inside ​$lev[detection/|detection] events. 
-  * [[llGetObjectDetails]] with [[constants/OBJECT_GROUP]] can retrieve an object'​s group (not an avatar'​s though).+  * $fn[llGetObjectDetails] with $lct[OBJECT_GROUP] can retrieve an object'​s group (not an avatar'​s though).