I have a few objects that I need to make group only... they have various scripts inside them..
one is a dance box that av's have to sit on to dance, the other been the tip jar that they have to touch to use...
how do I make these group only?
These forums are CLOSED. Please visit the new forums HERE
Group only script |
|
Atua Tigerfish
Registered User
Join date: 24 May 2009
Posts: 1
|
09-22-2009 09:28
I have a few objects that I need to make group only... they have various scripts inside them..
one is a dance box that av's have to sit on to dance, the other been the tip jar that they have to touch to use... how do I make these group only? |
Argent Stonecutter
Emergency Mustelid
![]() Join date: 20 Sep 2005
Posts: 20,263
|
09-22-2009 09:56
Use llDetectedGroup(0) in a touch event, or llSameGroup(llAvatarOnSitTarget()) in a changed() event.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-22-2009 10:42
for the tip jar, the script needs to already be set up for group only access. the pole though, as argent said, can have a seperate script with a changed event for checking if the avatar has the group tag on.
not compiled or tested, written only in the forum posting window, so you may need to check for syntax errors CODE
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |