Set Group
|
|
Qwerty Writer
Registered User
Join date: 5 Mar 2007
Posts: 5
|
01-21-2008 23:07
Just a short question. Can a script set the group of an object or prim? Or is this a stupid question?
Regards, QW
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-21-2008 23:22
short answer: No.
|
|
Qwerty Writer
Registered User
Join date: 5 Mar 2007
Posts: 5
|
01-21-2008 23:26
thanks
|
|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
01-22-2008 00:09
From: Squirrel Wood short answer: No. What's the long answer?
|
|
Whispering Hush
™
Join date: 20 Mar 2007
Posts: 277
|
01-22-2008 01:04
noooooooooooooooooooo
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-22-2008 04:20
the long answer is you can link other objects with different groups set and run the group related scripts from there... which is effectively the same as having several seperate objects, with the option of controlling them via link messages instead of says or e-mails
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Archie Lukas
Transcended
Join date: 5 Jan 2007
Posts: 115
|
01-22-2008 05:56
From: Whispering Hush noooooooooooooooooooo I neared peed myself laughing 
_____________________
Archie Lukas
"Just the facts ma'am" MI5
|
|
Siann Beck
Beauty & Braiiiiinsss!
Join date: 14 Jul 2007
Posts: 140
|
01-22-2008 07:36
From: Whispering Hush noooooooooooooooooooo Oh, I haven't laughed that hard in a while! What made it funnier was that I thought of the same answer just a split second before I read your post. I'm glad you thought of it first -- I needed the laugh!
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-22-2008 09:28
From: Void Singer the long answer is you can link other objects with different groups set and run the group related scripts from there... which is effectively the same as having several seperate objects, with the option of controlling them via link messages instead of says or e-mails Link as in make them different prims of the same object? My understanding was that the group setting is per object, not per prim. Or did you just mean "link" as in have them coordinate and work together? 
|
|
Siann Beck
Beauty & Braiiiiinsss!
Join date: 14 Jul 2007
Posts: 140
|
01-22-2008 09:39
When building your object, you can set the group of each prim separately. When linked, the object will show the group of the root prim, but each child prim will retain its individual group setting.
_____________________
Help find a missing child. 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-22-2008 13:01
Wow. Okay. Thanks Siann. I had no idea. Seems a little scary how inobvious that is, but I guess we have the precedent set with the prim name and description. I wish they'd show the attributes that differ in the editor, or very clearly document them.
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
01-22-2008 13:11
So if you have an if(llSameGroup(AvID)) in a prim, will it return true for the same group as the prim, or still the group of the overall object?
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
01-22-2008 13:29
From: Very Keynes So if you have an if(llSameGroup(AvID)) in a prim, will it return true for the same group as the prim, or still the group of the overall object? it will allow you to do the next event, basicly if you have a prim to a group and you wont only group members to get stuff from that prim it will work, else if they arent they will get a message like this default { touch_start(integer total_number) { if(llSameGroup(llDetectedKey(0)) == TRUE) { llSay(0, "hi"); } else // if they arent in group { llSay(0,"no touch for you"); } } }
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
01-22-2008 13:40
So you could have several prims in one object, each belonging to a different group, with the above example code, and use it to distribute on the basis of say "team A","Team B","team c" etc.?
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
01-22-2008 13:56
basicly yes, but make sure there isnt any scripts in the main prim
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
01-22-2008 14:06
From: Mrc Homewood basicly yes, but make sure there isnt any scripts in the main prim Why? Is that becouse of the touch event or just in general? Another example application that comes to mind (Warning Lag mosnster in the making)  main prim has general a scan and detects all avies present, 2 child prims, each in a seperate group, scan for specific group tags and pass the data back to the root which is compiling the database. I'm sure it could be refined further, but I do have an application in mind, based on that idea.
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
01-22-2008 15:36
what i meant was touch scripts in main prim, if they prims are all linked together and each has a group touch script it will be doing 2 touch events at the same time if you get what i mean, kinda off today srry didnt keep that clear 
|