SetAHP
Sets the amount of AHP for players.
Syntaxโ
SetAHP @players amount limit? decay? efficacy? sustain? isPersistent?
Argumentsโ
| Name | Required | Type | Description |
|---|---|---|---|
players | Yes | Player variable (e.g. @all, @classDPlayers) | |
amount | Yes | A number bigger or equal 0 | The amount of artificial health to ADD to the player. Use a negative number to remove. |
limit | No | A number bigger or equal 0 | The upper limit of AHP. |
decay | No | A number bigger or equal 0 | How much AHP is lost per second. |
efficacy | No | A number between 0% and 100% (inclusive) | The percent of incoming damage absorbed by AHP. |
sustain | No | Duration in format #ms, #s, #m, #h (e.g. 5s or 2m) | The amount of time before the AHP begins to decay. |
isPersistent | No | bool (true or false) value | Whether or not the AHP process stays after AHP reaches 0. |
On a running serverโ
Use serhelp SetAHP to inspect the reference generated by your installed SER version.