Calculate with if statement in Blueprint

Hey guys, I was working on falling damage when the character fall … everything works fine but the problem is it’s not exactly like I want

This is my Blueprint for the damage

I created something so

“if the height between 1000 and 1500 then damage is 10 on health”

“if the height between 1500 and 1750 then damage is 20 on health”

“More than 1750 the character should die because the damage 300”

Is it possible to do something in the Blueprint like calculating the height and do something on the health like:

If fall height units greater than 1000 do this

Damage = NumerOfUnits -1000

CurrentHP = CurrentHP - Damage

For example if you fall from from 1077 units then you will get damage on health -77

Is it possible to do that using Blueprint or I MUST use C++ ? I prefer Blueprint to be honest because it’s easier to edit by anyone!

You are currently using the velocity. If velocity indicates falling you should store the World Position of your character and when your character lands get the new World Position. With the difference in the Z axis you can get the traveled distance. This way you can set up a system as you like.
Hope this helps,

And it is definitely possible to do it in blueprints!

Thank you for help, kinda understood what should I do but I’m still confused about what I should remove and replace lol

“On Landed” you can just “GetVelocity” and multiply the Z value by a damage factor then the damage will be based on the force of the impact. Then you don’t need to use Tick.