class

MHealthComponent

Module
Game
Header
#include "Game/MHealthComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
floatmaxHealthConfig: a project sets the default max health in DefaultGame.ini's [/Script/Mowo.HealthComponent] without a code change. Default 100.0f.
boolstartInvulnerableDefault false.

Constructors

SignatureNameDescription
MHealthComponent() = defaultMHealthComponent

Public functions

ReturnsNameDescription
voidBeginPlay
floatApplyDamageDelegating gameplay API.
floatHeal
voidKill
voidRevive
boolIsDead
floatGetHealth
floatGetHealthPercent
floatGetMaxHealth
voidSetInvulnerable
HealthComponent&Health

Function details

MHealthComponent

C++
MHealthComponent() = default

BeginPlay

C++
void BeginPlay() override

ApplyDamage

C++
float ApplyDamage(float amount, MObject* instigator = nullptr)

Delegating gameplay API.

Heal

C++
float Heal(float amount)

Kill

C++
void Kill(MObject* instigator = nullptr)

Revive

C++
void Revive(float health)

IsDead

C++
bool IsDead() const

GetHealth

C++
float GetHealth() const

GetHealthPercent

C++
float GetHealthPercent() const

GetMaxHealth

C++
float GetMaxHealth() const

SetInvulnerable

C++
void SetInvulnerable(bool invulnerable)

Health

C++
HealthComponent& Health()
Generated from Game/MHealthComponent.h via game.json · Nov 5, 2026Version 1.0.0