PDA

View Full Version : Hit counter/Damage modifiers



tdarb
01-21-2011, 04:35 PM
Hopefully someone can help me here. I have an object that when it is hit so many times it dies (impact sensor tied to a counter).

Now when it is hit by different sources/materials, I want to modify the damage. For instance, if the creature is hit by fire I may want it to do 2 damage, but if it is hit by a thrown block of wood I only want 1 damage. I figure tags on the projectiles and a corresponding impact sensor looking for that tag will take care of sorting out what object just hit. Is there a simple way to get it to register the damage modifiers as well?

Any help would be great. I'm getting to that point where I'm sure I am over thinking this, and I'm sure it is getting far more complicated than it needs to be. :)

Sehven
01-21-2011, 06:52 PM
You might wanna' look into using a timer as healthbar (http://www.lbpcentral.com/forums/showthread.php?44386-HOW-TO-Convert-Timer-into-Health-Bar) instead of a counter.

tdarb
01-22-2011, 05:09 AM
Yeah, I was looking at that, but I would really like to stick with counters for this since all of my targets are already built using counters.

I think I may have found a way that will work, but I will have to test it out. If not, the link you gave may be the way I go. Thanks.