|
Myyst Jewell
Registered User
Join date: 8 Jun 2007
Posts: 12
|
05-06-2008 05:32
Duh, Really really new at scripting, and i know this is a basic question but: I want to set a object to group use only and can't seem to find a script for it any where. Is there away to do it? oh! please explain barney style, cause I am not real bright when it comes to scirpting!
|
|
Georg Stonewall
Husband of Nikki
Join date: 21 Jan 2007
Posts: 211
|
05-06-2008 05:55
touch_start(integer total_number) { if(llSameGroup(llDetectedKey(0))) { llSay(0, "Yes you are in this group"  ; } else { llSay(0, "Sorry you are not in this group"  ; } } Hope this helps. If not, then ask more detailed. cu Georg
_____________________
G&N Quality Design SLURL  Blog  Flickr  XStreetSL 
|
|
Myyst Jewell
Registered User
Join date: 8 Jun 2007
Posts: 12
|
syntax error
05-06-2008 20:58
I am getting some type of syntax error (4,2) :ERROR: Syntax error
??? I broke it?
oh! Thank you for answering!
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-06-2008 22:07
From: Myyst Jewell I am getting some type of syntax error (4,2) :ERROR: Syntax error That wasn't a whole script. It was only the 'touch_start' handler, which needs to be in a state such as the default state.
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
05-06-2008 22:58
I think her question was how to SET an object to group via scripting... not check group status
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-07-2008 10:22
Ah. You cannot set an object's group or permissions ("share with group", etc.) from a script. You have to do it manually in the Edit window (or implicitly by having a group acitivated for your avatar when you rez from your inventory) or use some kind of custom client. The only real group related thing you can do from script is detect the group an object is set to (and whether it is deeded) and detect whether an avatar has the object's group activated. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetObjectDetailshttp://www.lslwiki.net/lslwiki/wakka.php?wakka=llDetectedGrouphttp://www.lslwiki.net/lslwiki/wakka.php?wakka=llSameGroup
|