Secondly Damage

Hey i want to make secondly damage, if the player enters a trigger volume.
This is whats it looks like

i dont think people understand what you’re asking… I don’t. Maybe try and word the question differently.

Ok i will try:

I have a Game and I want to make it, that the Player has 100 lives or something and when he walks into a trigger Box around a fire or something,that he gets removed 5 lives per second.I can make it only, that it removes 5 lives every time the player enters the trigger box.

Thats better explanation

Try this: (obviously use your trigger box on the overlap… i just used a random mesh)

I did it like you nothing is happening :confused:

And maybe you can show me how to make a lifebar with this kind of lifes.
It would REALLY help me out!!!

Disconnect the End overlap. Just see if the timer continues to deplete the health after the initial overlap. See if just that works to start.

sure its easy… but get the deplete working first.

yes it works

I didnt really pay close attention before. didnt realize you were doing this in the level blueprint…the health variable should be in your character blueprint,

it should look more like this:

realistically, you should have a server function in the char blueprint that does the deplete health. At the end of the that function each time it depletes it should check if the health is less than or = to zero… if so, then run the “kill player function” Makes it easier than trying to manage health depletion in two separate parts.

Im sorry but i cant find the deplete in my charBP

you wont have it by default. I created that as a function. In your own character blueprint, create a function. In the function put the health -5 then reset the health. Then in the event graph create a server event and call it DepleteHealth_server (or whatever you want). Then make that server even run the DepleteHealth FUNCTION

then in the level BP you can drag out and find the deplete health server event you created.

Can you send me pic pls? i dont understand it completely.
Sorry for my dumbiness

this stupid thing deleted my comments. Answerhub sucks. anyway, look at the pics… should get you going. It works in mine.

once you have that working, take a look at the radial damage node. you wont have to worry about specify which actors to damage, it just applies damage to all within range.

You should also look into putting all of this into a blueprint actor with a collision box instead. That way you can drop them into the level wherever you want multiple times etc…

Hm. It says overlapping and i get the damage but there isnt anymore…

I dont know what i have made wrong
i did it just like you

post what you have.