Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Im useless!

Damien Fate
Goofy designer
Join date: 6 Nov 2003
Posts: 634
09-23-2004 04:54
I have searched all over but I can't find a kill script for the life of me... maybe cause I wouldn't even know what one was if I saw it but anyway...

What I need is a simple kill script upon owner's command.

eg, I have a few objects out that I want to go away if I say "delete" or whatever, and they simply delete themselves.

Can someone help me out please?
_____________________
Mirada.smartHUD - The new way to control your avatar and the world around you - In Mirada, Hairspray (22,63,51) or find me in world!

You want me to be Semi Serious? Well that's ok, I'm almost half semi serious 50% of the time.
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
09-23-2004 04:58
CODE
default
{
state_entry()
{
llListen(0,"",llGetOwner(),"");
}

listen(integer channel, string name, key id, string m)
{
if (m == "die")
{
llDie();
}
}
}
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Damien Fate
Goofy designer
Join date: 6 Nov 2003
Posts: 634
09-23-2004 05:07
Thankyou very muchly ;D
_____________________
Mirada.smartHUD - The new way to control your avatar and the world around you - In Mirada, Hairspray (22,63,51) or find me in world!

You want me to be Semi Serious? Well that's ok, I'm almost half semi serious 50% of the time.
Moonshine Herbst
none
Join date: 19 Jun 2004
Posts: 483
09-23-2004 05:20
Don't know if this is a valid tip or not, but:

You can still have ghosting problems. Ghost objects can be a serious visual problem. For instance in 3d-vendors, where ghosted items mess up the view of the next item.

I usually send the object down below the ground before it dies if there is a risk it will be in the way if it ghosts.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-23-2004 06:21
if you force it to update before it deletes you greatly reduce the chances of ghosting. So have it run an llSetPos(llGetPos()+<0,0,0.001>;); just before the die. (or llSetText())
_____________________
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
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-23-2004 06:54
I can see it now... Object sets text to 5, 4, 3, 2, 1, starts trembling, and emits a particle explosion right before llDie! :D
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
09-23-2004 06:57
From: someone
Originally posted by Eggy Lippmann
I can see it now... Object sets text to 5, 4, 3, 2, 1, starts trembling, and emits a particle explosion right before llDie! :D


Kex and I built a lemming rezzer than does exactly that :)

Except... dozens of Lemmings :)

Oh, and "uh-oh" and *pop* sounds...
_____________________
--
~If you lived here, you would be home by now~
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-23-2004 06:58
Yay! :D
Post a snapshot somewhere, if you have time.
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
09-23-2004 08:18
From: someone
if you force it to update before it deletes you greatly reduce the chances of ghosting. So have it run an llSetPos(llGetPos()+<0,0,0.001> ); just before the die. (or llSetText())


Is that a little farther than "Six Feet Under"? :)
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-23-2004 08:22
check Script Delay

Depends how far away the ground is.
_____________________
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
09-23-2004 08:44
The 0.001 is as near zero as you can define for the purposes of a vector. Is it possible that you would be able to use a negative number in that slot and make it dissapear? For instance:

llSetPos(llGetPos()+<0,0,-600.0> );

Or is that impossible?

I'm trying to understand the llSetPos() function.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-23-2004 09:14
the furthest a setpos can go is 10 meters at a time (it normalizes your vector so it's distance becomes 10...) so to move it underground would require multiple setpos commands.
_____________________
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