Difference between revisions of "User:Nyeomi Resident"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "llDetectedGroup & llSameGroup used seperately both return TRUE if the object is not set to a group (i.e. "(none)") and either the AV with the given key has no group active or the…")
 
Line 1: Line 1:
llDetectedGroup & llSameGroup used seperately both return TRUE if the object is not set to a group (i.e. "(none)") and either the AV with the given key has no group active or the function is called with a NULL_KEY. If llDetectedGroup is used in conjunction with llSameGroup such as the following example... if (llDetectedGroup(llSameGroup(NULL_KEY))), will return the correct value, regardless if the object is or is not set to a group.
llDetectedGroup & llSameGroup used seperately both return TRUE if the object is not set to a group (i.e. "(none)") and either the AV with the given key has no group active or the function is called with a NULL_KEY. If llDetectedGroup is used in conjunction with llSameGroup such as the following example... 'if (llDetectedGroup(llSameGroup(NULL_KEY)))' will return the correct value, regardless if the object is or is not set to a group.  
 
The following example is a demonstration on how to use the two functions llDetectedGroup & llSameGroup in conjunction with one another.
 
// Active Group Script //
// Nyeomi Resident //


default {
default {

Revision as of 09:37, 21 May 2013

llDetectedGroup & llSameGroup used seperately both return TRUE if the object is not set to a group (i.e. "(none)") and either the AV with the given key has no group active or the function is called with a NULL_KEY. If llDetectedGroup is used in conjunction with llSameGroup such as the following example... 'if (llDetectedGroup(llSameGroup(NULL_KEY)))' will return the correct value, regardless if the object is or is not set to a group.

default {

   touch_end(integer num_detected) {
       if (llDetectedGroup(llSameGroup(NULL_KEY))) {
           llOwnerSay("Authorized Group");
       }   else llOwnerSay("UnAuthorized Group");
   }

}