Loading...
Searching...
No Matches
realvirtual.HealthComponent Class Reference
Helper component for health-based effects. More...
Inheritance diagram for realvirtual.HealthComponent:
Public Member Functions | |
| float | GetHealthPercent () |
| Returns the current health as a percentage (0-1) | |
| void | Heal (float amount) |
| Increases health by the specified amount. | |
| void | SetHealth (float health) |
| Sets health to a specific value. | |
Public Attributes | |
| float | maxHealth |
| Maximum health value. | |
| float | currentHealth |
| Current health value. | |
Detailed Description
Helper component for health-based effects.
Member Function Documentation
◆ GetHealthPercent()
| float realvirtual.HealthComponent.GetHealthPercent | ( | ) |
Returns the current health as a percentage (0-1)
◆ Heal()
| void realvirtual.HealthComponent.Heal | ( | float | amount | ) |
Increases health by the specified amount.
◆ SetHealth()
| void realvirtual.HealthComponent.SetHealth | ( | float | health | ) |
Sets health to a specific value.
Member Data Documentation
◆ currentHealth
| float realvirtual.HealthComponent.currentHealth |
Current health value.
◆ maxHealth
| float realvirtual.HealthComponent.maxHealth |
Maximum health value.