The documentation for AACS and the CodeEditor.
Reduces the amount of health left.
Name | Type | Description | Required | Default Value |
---|---|---|---|---|
Amount | Number | The amount of health that should be removed. | ✓ | 0 |
1: ...
2: DecreaseHealth:[50];
3: ...
1: ...
2: Damage:[20];
3: ...
The maximum amount of health is 100. The health bar will automatically be displayed when the health is changed, provided it wasn’t already displayed
Should the health fall to 0 or below, a the Frame with the ID GameOver
will be called, should it exist. Afterwards, the game will end.