Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Damage no DIE!

Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
12-26-2008 05:27
Hi.

How can I give an object damage of 100, but have it not die on collision?

Thanks.
Imago Aeon
Animation Designer
Join date: 23 Oct 2007
Posts: 65
12-26-2008 10:40
From: Nyx Alsop
Hi.

How can I give an object damage of 100, but have it not die on collision?

Thanks.


Do you have a snippet to post?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
12-26-2008 11:32
You can't. Objects with damage set ALWAYS die on collision. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetDamage

You could, however, have your object rez other objects with damage set, or (if you or your group own the land) use llTeleportAgentHome() instead of doing it by killing them with damage.
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
12-26-2008 15:25
I thought the object that use the LL damage systems where pretty much out of use because of so many people gaming the system. ie shields, 100 point damage bullets, instat kill non-physical bullets.
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
12-26-2008 15:45
From: Nyx Alsop
Hi.

How can I give an object damage of 100, but have it not die on collision?

Thanks.


Instead of using the SL damage system, you could try something like this:

CODE

integer counter = 0;
default
{
state_entry()
{
}
collision(integer int)
{
counter += 1;
if (counter > 100)
{
llSay(0," I've reached damage 100. Counter reset.");
counter = 0;
}
}
}


The event could be changed to collision_start() or collision_end() upon your situation. :)