I’m using ALSv4 and my player gets damage when the velocity reaches a certain value.
How to make it so that the player receives damage only after landing on the ground?
PlayerFall is called via EventTick
Easiest way is to get velocity in the OnLanded event, break out the z float, normalize and multiply it, then feed to applydamage node.
Clamp is probably overkill there, but, yea.
Works in UE 5.x anyway. I seem to remember having problems with the velocity zeroing out on land in 4.x though. If that happens for you, could also set the fall speed in tick if falling is true, then use that var in the OnLanded event.
1 Like