Difference between revisions of "User:Nyeomi Resident"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
touch_end(integer num_detected) { | touch_end(integer num_detected) { | ||
if (llDetectedGroup(llSameGroup(NULL_KEY))) | if (llDetectedGroup(llSameGroup(NULL_KEY))) | ||
llOwnerSay("Authorized Group"); | |||
else | |||
llOwnerSay("UnAuthorized Group"); | |||
} | } |
Revision as of 13:09, 24 October 2013
DISCUSSION TOPIC: llDetectedGroup & llSameGroup used in conjunction with one another.
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)))
it will return the correct value, regardless if the object is or is not set to a group.
touch_end(integer num_detected) { if (llDetectedGroup(llSameGroup(NULL_KEY))) llOwnerSay("Authorized Group"); else llOwnerSay("UnAuthorized Group"); }