Hello, I am starting to work with damage. I have a TPP Mesh that i am using as a “bot” i have made Current Health and Max health for this bot. When i shoot my projectile at him its supposed to do 50 damage out of the 100 he has. But for some reason it skips that and just goes over to destroy actor. Can anyone tell me what i’m doing wrong.
Hello,
I would say that your hit event happens more than once. (To be sure add a print on start, if you see more than one hello, that’s it.) If yes a “doonce” with a “delay” to reset “doonce” at the end would be ok. Or replace event hit by event overlap.
im not sure about this but i think you just have to switch the “subtracting” node. The way i read it the math goes like this: Damage (50) - Current Health (100) = -50 .Then its clamped to the min value and "Bot current health"is 0. Then the Branch becomes true and your actor will be destroyed.
I tried that and its still not working. I’m not sure what it could be did i setup the damage right? My currenthealth variable is at 100 and this should only take 50 from that so there should be 50 left.Does everything look ok in the health for the bot.?