Difference between revisions of "Talk:LlSameGroup"

From Second Life Wiki
Jump to navigation Jump to search
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)
: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)

Revision as of 03:31, 27 August 2010

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)