Verse API reference page for the SetHealth function
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
healthfulobjects use thedamageable.Damagefunctions instead.
Verse using statement |
using { /Fortnite.com/Game } |
SetHealth<public>(Health:float)<transacts>:void
Parameters
SetHealth takes the following parameters:
| Name | Type | Description |
|---|---|---|
Health |
float |
Attributes, Specifiers, and Effects
Specifiers
The following specifiers determine how you can interact with SetHealth in your programs. For the complete list of specifiers, see the Specifiers Page.
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
Effects
The following effects determine how SetHealth behaves in your programs. For the complete list of effects, see the Effect Specifers section of the Specifiers Page.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.