Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Prevent attachment if not in group

Leo Mission
Registered User
Join date: 6 Jan 2006
Posts: 189
11-15-2009 07:35
Hello there, I was wondering if anyone had any idea how to make a script that would prevent the attachment of an object (e.g. a HUD or a body attachment) if they were not a member of a certain group, or I guess wearing the active tag of said group.

I know LSL sensing groups is a bit primitive (usually the active group an object is set to), but can this be done?

Many thanks for your help.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
11-15-2009 07:53
Attachments are set to whatever group you happen to have active at the moment you put them on. They keep that until the next time you log in, or the next time you attach.

So, you might use llGetObjectDetails(llGetKey(), [OBJECT_GROUP]) and compare that against a known group key, and maybe prompt to change the active group and detact/reattach if it's wrong.