Level_CharacterFallDamage¶
This Level_CharacterFallDamage community component lets you set up fall damage conveniently. You only need to set:
- Damage height, the minimum fall height that causes damage
- Initial damage, the percentage of health points that will be lost when falling to the Damage height
- Death height, the minimum fall height that causes death
Note: As this is a global component, you can attach this component to any object in the scene. However, it's a best practice to create an empty object named "GameManager" and attach this component to it.
Related components¶
This component is often used together with Level_DeadMessage, which sends messages after a player's death.