Difference between revisions of "LlSameGroup"
Jump to navigation
Jump to search
m (Undo revision 117022 by Strife Onizuka (Talk)) |
m |
||
Line 31: | Line 31: | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llDetectedGroup]]|Used in conjunction with {{LSLGC|Detected|detection}} events}} | |also_functions={{LSL DefineRow||[[llDetectedGroup]]|Used in conjunction with {{LSLGC|Detected|detection}} events}} | ||
|also_tests | |also_tests= | ||
{{LSL DefineRow||[[llSameGroup Test]]}} | |||
|also_events | |also_events | ||
|also_articles | |also_articles |
Revision as of 11:58, 3 November 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Examples
<lsl>// Gives inventory object only to agents with the same active group default {
touch_start(integer total_number) { integer i;
for (i = 0; i < total_number; i++) { if (llSameGroup(llDetectedKey(i))) // same as llDetectedGroup(i) (with llDetectedGroup, detected does not need to be in the sim) llGiveInventory(llDetectedKey(i), llGetInventoryName(INVENTORY_OBJECT, 0)); else llSay(0, "Wrong active group!"); } }}</lsl>
Notes
Child Prims
It is possible for the group of a child prim to differ from that of the root prim. To build such an object it must first be unlinked, the groups set, and then relinked. Rezzing an object resets the group of the object to that of the group that the user currently has activated. Changing the group of an object changes the group for the entire object. This may only be an artifact or manifestation of VWR-5044.
See Also
Functions
• | llDetectedGroup | – | Used in conjunction with detection events |