Difference between revisions of "Talk:LlSameGroup"

From Second Life Wiki
Jump to navigation Jump to search
(New page: According to LSLWiki, "Passing NULL_KEY as id will return TRUE if the object's active group is set to "none", FALSE otherwise". If this is indeed a solid specification, it should be mentio...)
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
According to LSLWiki, "Passing NULL_KEY as id will return TRUE if the object's active group is set to "none", FALSE otherwise". If this is indeed a solid specification, it should be mentioned here. You often need to recognize this, particularly because of the "no group is same group" behavior, necessitating this extra check if you want to restrict some functionality to an actual group. -- [[User:Tali Rosca|Tali Rosca]] 14:40, 29 January 2009 (UTC)
According to LSLWiki, "Passing NULL_KEY as id will return TRUE if the object's active group is set to "none", FALSE otherwise". If this is indeed a solid specification, it should be mentioned here. You often need to recognize this, particularly because of the "no group is same group" behavior, necessitating this extra check if you want to restrict some functionality to an actual group. -- [[User:Tali Rosca|Tali Rosca]] 14:40, 29 January 2009 (UTC)
:Tested and added =) --[[Image:Zai_signature.png|45px]] '''[[User:Zai Lynch|Lynch]]''' <sup><small>([[User talk:Zai Lynch|talk]]|[[Special:Contributions/Zai Lynch|contribs]])</small></sup> 15:34, 29 January 2009 (UTC)
A small test suggests that llSameGroup tests against the prim's group, not the object's.  The main page explains that a child prim may be of a different group than the root.  If the script is in the child, the test is against the child prim's group, not the root's. [[User:Jonno Stromfield|Jonno Stromfield]] 10:31, 27 August 2010 (UTC)
The description says "Returns an integer boolean, that is TRUE if uuid has the same active group, otherwise FALSE".    When using the word "same" you need to say what 2 things are the same. In this case it's the group of the uuid passed to this function, and the group of the prim the script is in.  Unfortunately it appears to be totally impossible for a mere mortal make the needed change on the page. [[User:Omei Qunhua|Omei Qunhua]] ([[User talk:Omei Qunhua|talk]]) 05:07, 20 March 2015 (PDT)
:You were missing an "=" sign. I've rewritten everything. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 12:55, 21 March 2015 (PDT)

Latest revision as of 12:55, 21 March 2015

According to LSLWiki, "Passing NULL_KEY as id will return TRUE if the object's active group is set to "none", FALSE otherwise". If this is indeed a solid specification, it should be mentioned here. You often need to recognize this, particularly because of the "no group is same group" behavior, necessitating this extra check if you want to restrict some functionality to an actual group. -- Tali Rosca 14:40, 29 January 2009 (UTC)

Tested and added =) --Zai signature.png Lynch (talk|contribs) 15:34, 29 January 2009 (UTC)

A small test suggests that llSameGroup tests against the prim's group, not the object's. The main page explains that a child prim may be of a different group than the root. If the script is in the child, the test is against the child prim's group, not the root's. Jonno Stromfield 10:31, 27 August 2010 (UTC)


The description says "Returns an integer boolean, that is TRUE if uuid has the same active group, otherwise FALSE". When using the word "same" you need to say what 2 things are the same. In this case it's the group of the uuid passed to this function, and the group of the prim the script is in. Unfortunately it appears to be totally impossible for a mere mortal make the needed change on the page. Omei Qunhua (talk) 05:07, 20 March 2015 (PDT)

You were missing an "=" sign. I've rewritten everything. -- Strife (talk|contribs) 12:55, 21 March 2015 (PDT)