You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
functions:llsamegroup [2014-05-16 08:08 SLT] sei [Parameters] avatar -> agent |
functions:llsamegroup [2015-02-04 14:15 SLT] (current) sei or -> or if |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | $nav | ||
===== Function: llSameGroup ===== | ===== Function: llSameGroup ===== | ||
Line 13: | 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, | + | 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). |
- | or if the object of key id is assigned to the same group. | + | |
- | 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 [[constants/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[TRUE] if the user/object of key id has no active group, and the prim containing the script is not assigned to any group. |
- | * [[constants/TRUE]] is also returned if this object is not assigned to any group, and the function is called with NULL_KEY. | + | * $ct[TRUE] is also returned if this object is not assigned to any group, and the function is called with an argument of $lct[NULL_KEY]. |
- | * An object MAY be constructed from several prims each assigned to a different group. However, if the built object is then assigned to a new group, each component prim will be reassigned. | + | * 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 61: | 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. |
+ | * $fn[llGetObjectDetails] with $lct[OBJECT_GROUP] can retrieve an object's group (not an avatar's though). |