TK_HealthCareComponent - golden-coconut-studio/TikiAdventuresWiki GitHub Wiki
-
This components manages the gain and loss of health points of the tikis and the enemies, as well as kill him, set the tikis in ghost mode and then revive him.
-
How to use it:
0.- Add the component to the Tiki/Enemy. 1.- For testing purposes, call the Damage() or Heal() functions. Be aware these functions are not going to be called from blueprint, but from another functions (i.e enemy attacks, healing abilities, etc).
-
Conditions
- Die is called when the health points of any Tiki/Enemy reach 0 or less. - Health points are set to 0 automatically when calling Die(). This will be useful when we want the Tiki to die even if it has not been damaged or if it has died by another means. - For the tiki, Die() requires the TK_UpDownComponent to undo the totem just in case the dead Tiki was in Totem mode. -For the tiki, Die() changes player mesh to another one which HAS to be set in the component properties in the editor.