- this works with Point Damage; as debug the player damages itself with 1.
You probably have a better way of dealing damage, though so use what you’ve got.
- the translation from hit body part → widget is based on those 2 maps:
One map must populate on Begin Play since widgets are yet to be created. When a bone is hit, we send data to the associated widget. This could be done with a single map but seems more flexible this way. (in case you have something with 2 heads and 4 legs)
- assets are here:
-
the math bits are in the components (WC_PB stands for Widget Component_Progress Bar), there’s no script in the widgets whatsoever
-
Project Link:
coffee
Nah, it was a cool exercise. Never made anything similar before so the chances are it can be vastly improved. There’s a ton of stuff missing before this get usable, ofc. Just an idea at this point.
Good luck!