Healthful Interface
Implemented by Fortnite objects that have health state and can be eliminated.
Verse using statement |
using { /Fortnite.com/Game } |
Members
This interface has functions, but no data members.
Functions
| Function Name | Description |
|---|---|
GetHealth |
Returns the health state of the object. This value will be between 0.0 and GetMaxHealth |
SetHealth |
Sets the health state of the object to Health. * Health state will be clamped between 1.0 and GetMaxHealth. * Health state cannot be directly set to 0.0. To eliminate healthful objects use the damageable.Damage functions instead. |
GetMaxHealth |
Returns the maximum health of the object. This value will be between 1.0 and Inf. |
SetMaxHealth |
Sets the maximum health state of the object. * MaxHealth will be clamped between 1.0 and Inf. * Current health state will be scaled up or down based on the scale difference between the old and new MaxHealth state. |