Talk:LlAttachToAvatar

From Second Life Wiki
Jump to navigation Jump to search

Note that llAttachToAvatar will fail if the avatar is not the owner of the object being attached, even if permission to attach has been granted.

llDie or llDeleteFromInventory or llAttachFromInventory?

There is no functionality that I can find for cleaning up a user's inventory after rezzing an object from a Prim's inventory and attaching it. Repeated use of the object and attachment results in a clutter in the user's inventory of the rezzed/attached object. There seems to be no way for a script to rez the "attachment" from the users inventory or even check to see if it exists, which might allow for the rezzed object to be killed (llDie()) and the one existing in User inventory to be recycled instead.

If there are any workarounds for this it would be greatly appreciated as to how to approach it.

You could make it no-copy, if it's ok for it to be transferable. --Sayrah Parx 14:03, 15 June 2010 (UTC)