Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDie vs. llDetachFromAvatar

Grimoire Jewell
Registered User
Join date: 18 Jun 2007
Posts: 6
07-06-2007 20:04
Maybe I'm missing something here, but I've noticing an important missing script function - deleting from inventory.

llDie does not work on attachments, so it is suggested to use llDetachFromAvatar to get rid or a rezzed object you are holding.

Thats fine and dandy, I can detachfromavatar and then make it die, but a copy still goes into my inventory. The more I rez, the more copies I get.

There is a function called llRemoveInventory, but that only works on an object's inventory, not mine.

Is there no way to script a cleanup so that I don't have rez copies cluttering up my personal inventory? I can understand not making that a default condition, but we should be able to do this...

For example, if I have a barrel of beer, and I want cups spawning from it to be deleted after unattaching from my hand (not just get junked into my pocket forever) how do I do that?

Furthermore, how do people enable customers to try something on without retaining a copy in their inventory (despite llDetachFromAvatar)?
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
07-06-2007 21:53
Thats right, there is no way to delete an attachment. Its probably a good thing too considering that its use would probably make a lot of people unhappy when their attachments evaporated.

Sample objects are typically textured in an undesirable way or have crippled functionality... or both.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
07-07-2007 04:10
From: Grimoire Jewell
Thats fine and dandy, I can detachfromavatar and then make it die, but a copy still goes into my inventory. The more I rez, the more copies I get.
How d'ya figure? llDetachFromAvatar doesn't *drop* the attachment, it just de-rezzes it. Attachments do not spawn new copies each time they are worn, only copyable objects dragged from inventory onto the ground (or another prim) do.


From: someone
For example, if I have a barrel of beer, and I want cups spawning from it to be deleted after unattaching from my hand (not just get junked into my pocket forever) how do I do that?
Manually manage your inventory. Could you imagine the griefing that would occur if a script could delete items from an agent's inventory? (Even if doing so only moves them to the Trash folder)


From: someone
Furthermore, how do people enable customers to try something on without retaining a copy in their inventory (despite llDetachFromAvatar)?
If it's a clothing item, they can't. If it's an attachment, they can have the customer stand on a "posing stand" and approximate the position of the attachment relative to the avatar. An avatar cannot actually "wear" anything their agent doesn't own, and therefore which exists in their inventory.