Jump to content

[Help wanted] Basic script needed


Katherine Heartsong
 Share

You are about to reply to a thread that has been inactive for 1398 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Using RLV you can set someone's active group, though for that to work they first have to have RLV active in their viewer. Not all viewers support RLV, and for many (probably most, and possibly all) of those that do it is disabled by default, and has to be deliberately enabled by the user.

If you're planning to attach an object to an avatar when they enter your land that object can issue the RLV command to set the group. RLV can't determine directly whether a user is a member of a particular group, but it can attempt to set the group and the script can then test to see if it's been successful.

  • Like 1
Link to comment
Share on other sites

4 hours ago, KT Kingsley said:

RLV can't determine directly whether a user is a member of a particular group, but it can attempt to set the group and the script can then test to see if it's been successful.

There is a way with LSL, though, sort of

llList2Key(llGetObjectDetails(llList2Key(llGetAttachedList(kAvatar),0),[OBJECT_GROUP]),0);

That reads the UUID of the first attachment it finds on kAvatar, and then reads the group to which that attachment is set, which should be the avatar's active group, too.    You can then compare it with that of the group in which you're interested  (that's assuming you can't call llSameGroup(kAvatar) or  llDetectedGroup(0), which you ,of course, know but others might not).

Edited by Innula Zenovka
  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1398 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...