Jump to content
  • 0

Is there a way to set a single tag to access a collar instead of an entire group?


failedfetus
 Share

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

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

Question

2 answers to this question

Recommended Posts

  • 0

Unfortunately, no, this is not possible.

A script can only detect whether another object or avatar belong to the same group as the object containing the script -- and in the case of avatars, it can only detect this if the avatar in question has that group active at the time.  There is no means for a script to acquire a list of what groups an avatar belongs to, or to test if an avatar belongs to a specific group other than the one the avatar currently has active.  There's definitely no provision for a script to determine exactly which group role or title the AV is wearing.

In other words, if you have a group called "MyGroup", with roles of "Overlord", "Underling", and "Minion", then an object which belongs to "MyGroup" (either because it was rezzed on land belonging to "MyGroup", or it has been set to "MyGroup" via the edit window, or it's being worn by an avatar who currently has one of "MyGroup"'s tags active) can only determine whether an avatar that tries to interact with it (by touching it, colliding with it, etc.) is currently wearing a "MyGroup" tag -- it can't determine which tag they're wearing (i.e. it can't tell if they're an "Overlord", an "Underling", or a "Minion"), and it can't determine if they're a member of "MyGroup" if they're currently wearing a tag from a different group, or no group tag at all.  If they're not wearing a "MyGroup" tag, the script will behave as though the avatar in question is not a member of the group.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2581 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...