Weedy Herbst
Too many parameters
Join date: 5 Aug 2004
Posts: 2,255
|
03-20-2005 08:22
I am currently adding some remote debugging code into my radio script. I have successfully implimented object listens to IM me, creator, owner and sim information, but am having some difficulty with llDetectedGroup.
This is what I am trying to get:
string groupMatch = ? key creatorKey ="d0414a54-3f7d-49d1-8170-41fbabf2679" // my key llInstantMessage(creatorKey, "Object owner's group match is : " + groupMatch);
I would like the string groupMatch to report the words TRUE or FALSE
Thanks for your help.
|
Malachi Petunia
Gentle Miscreant
Join date: 21 Sep 2003
Posts: 3,414
|
03-20-2005 10:25
From the LSL Wiki: From: someone Returns TRUE if the agent/object associated with id has the same active group (and is currently in the same simulator) as the object the script is attached to. If not, returns FALSE. and since there are no ways of enumerating groups associated with an agent. You may be out of luck. I'm going to look at keys of group owned objects to see if one could hard-code that in for comparison. I'm also slightly trolling in the hope that someone will correct me. 
|
Weedy Herbst
Too many parameters
Join date: 5 Aug 2004
Posts: 2,255
|
03-20-2005 11:41
From: Malachi Petunia and since there are no ways of enumerating groups associated with an agent. You may be out of luck. integer groupMatch = FALSE; { if(groupAccess && owner != "" && llSameGroup(id)) { return TRUE; { return FALSE; if(llGetOwner() == id || (owner == "" && llSameGroup(id))) { groupMatch = TRUE; } I was given this by a person heavily invoved in security systems and experienced in group land situations. I get a syntax error before the first open bracket. Because of the enumeration issue,should "integer groupMatch" not be declared as "key groupMatch"? llSameGroup would seem more feasable than llDetectedGroup indeed.
|
Weedy Herbst
Too many parameters
Join date: 5 Aug 2004
Posts: 2,255
|
03-21-2005 07:39
Found a simple workable solution: if(llSameGroup(id)) llInstantMessage(creatorKey, "Tho object and owner are same group : TRUE"  ; else llInstantMessage(creatorKey, "Tho object and owner are same group : FALSE"  ; Thanks Malachi for the group detect tool. It was very useful for examining detailed land situations.
|