Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

alternatives to llDetachFromAvatar?

Alexander Daguerre
Junior Birdman
Join date: 9 Jun 2004
Posts: 32
10-16-2004 12:28
llDetachFromAvatar causes an attachment to go back into your inventory. I'm looking for something to allow an attachment to cause itself to drop off (like the Drop pie menu option as opposed to the Detach one). Is there such a thing?

Falling back one level, what I'm actually looking for is a way for an attachment to delete itself... llDie in combination with llDetachFromAvatar doesn't do this, you always seem to end up with a copy of the object in your inventory.

Any ideas, or am I just SOL just now?
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-16-2004 13:13
SOL you are :(
_____________________
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
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
10-17-2004 07:25
It sounds like you want an explosion effect that makes your avatar appear to fly apart...

If so, can you have the real prim appear to fall off by having a "particle effect" that is a texture that looks like the arm or body part, and at the same time make the real body part return to the inventory?

Not that I know how to do that, but could that work?
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
10-17-2004 08:21
just a thought since i got llRezObject on the brain. put a copy of your attachments into an object or back into the attachments themselves then have a command that makes each of those rez close to your body, turn physical so they fall, and change the texture of your real attachments transparent so they disapear. i've never tried this but that kind of thing works on objects i've seen so (hopefully) it would work on attachments. might get complicated but there ya go. :)

edit: just noticed what Samhain said. it would be alot easier to make the attachment go back into your inventory after it rezzed the one that looks like it falls off you. don't mess with the texture thing. too much headache.
Alexander Daguerre
Junior Birdman
Join date: 9 Jun 2004
Posts: 32
10-17-2004 10:35
Samhain, thanks. Cute trick, but I'm not actually trying to make myself explode, just have some functional attachments rez and derez under program control. The attachments are rezzed by another attachment and attach themselves automatically (they already have permission). What I am looking for is a way to make them go away without having lots of copies of them accumulate in my inventory.

Its peculiar that calling llDetachFromAvatar actually causes the attach event to be called, so that at that point your attachment is still in the world (it can speak, etc.) but that doing the obvious thing of calling llDie() doesn't actually have any effect. I'd call this a bug if the documentation was clearer about what llDetachFromAvatar was supposed to do (the LSL editor says "Drop off of avatar" but that's not what it is doing).

For now, I'm going with what Strife said; I manually use "Drop" on the attachment in question; when it sees this, it does an llDie() and we're done. Not perfect, but good enough for now.