Hello, I have configured fall damage in my project, and now if I fall and touch the ground I die, how can I make a pad or water so that I don’t die when I fall?
It depends on how you’ve implemented fall damage, but here’s a general suggestion:
Your best bet may be a simple check before applying the damage to see whether what you’re landing on should inflict fall damage. You can do this via tags or class checking.
Keep in mind tags are just strings, so be careful to type them correctly every time.
Check to see if the hit actor has the tag “NoFallDamage”
For any actor you want to stop fall damage from happening, add the tag “NoFallDamage”
I understand, so if I want a floor to have the “NoFallDamage” tag, how do I put it in that object?
Component Tags, OR create a custom collision profile and apply it to the floors collision settings.
On hit → brk result → Get collision profile name != “your custom collision” → apply dmg
Or you apply the custom collision profile to all floors that do dmg. Then your flow logic checks (profile name == “your custom collision”) → apply dmg
Which way you go should depend on which one is more abundant. If I have 400 floors that damage vs 10 that don’t. I’d apply a NoDmgFloor profile to those that don’t dmg. Less work.
You would click it, search for tags under the Actor tab, and then click the plus button