|
Shmirly Gopheller
Registered User
Join date: 16 Aug 2007
Posts: 3
|
01-04-2008 08:53
Hi, everybody. I am somewhat unsure about the following, so I'd better ask for advice:
I have a prim which attaches itself to an avatar after being clicked on. The problem: it needs PERMISSION_ATTACH which can only be granted by an owner. Is there a possibility to impower more then one avatar to grant such permissions by group-owning the prim?
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
01-04-2008 09:02
Nope. If the Group owned the prim, then only the Group could attach it--and Groups don't get to wear attachments.  What you're up against is a scripting limitation, and while annoying, it's kind of necessary because attachments get a bunch of permissions to act on the avatar just by virtue of being attached. And hence would be extraordinarily nasty griefer tools if they could be attached by anybody other than the owner. The closest I can think of to you're trying to do is to have a script in some other object keep a copy of the attachment rezzed and handy to be "bought" as original for L$0, with the default left-click action set to "buy". The avatar would still have to approve that purchase, but I think then the freshly purchased item should still be rezzed in-world (since it was purchased as original) and therefore be able to attach, based on a changed_owner event. (But I haven't tried this, so maybe there's a flaw in this whole process, beyond the ugliness of the buyer having to approve that L$0 purchase.)
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
01-04-2008 10:13
A simpler option is to have the attachable item in the object's inventory. When clicked, it gives the inventory item to the toucher and tells them to wear it.
|