Provides a generic resource component and a health system with runtime modifications.
Included is a generic resource ActorComponent that can be used for a variety of resources such as stamina, mana, or health. From this a HealthResource that automatically takes in the engine Apply Damage functions is included. It allows a variety of modifications during runtime that can be combined or individually removed. These modifications include:
Also included, is a ready-made HealthResource that automatically adds UI elements to the player's screen or in the world. Just add it to an Actor Blueprint and press play. By default a health bar will appear on the player's screen and above all other Actors using this. How these are shown can be modified in the details panel. HealthResourceWithUI is not very modifiable, as it was created as a quick prototyping tool.
Features:
Code Modules:
Number of Blueprints: 3 (Widget Blueprints
Number of C++ Classes: 6
Network Replicated: Yes
Supported Development Platforms: Windows, MacOS (untested but no windows specific functionality is used)
Supported Target Build Platforms: Windows, MacOS (untested but no windows specific functionality is used)
Documentation: https://docs.google.com/document/d/1MueuRAWY_xoaRL8tqMC0FaAjy9vT64bCArStPIcOVZU/edit?usp=sharing
Example Project: https://drive.google.com/file/d/1DOwZ2TsQ8eR7pxlGqjayso0KRsdM-9-k/view?usp=sharing