Skip to main content

SetAHP

Sets the amount of AHP for players.

Syntaxโ€‹

SetAHP @players amount limit? decay? efficacy? sustain? isPersistent?

Argumentsโ€‹

NameRequiredTypeDescription
playersYesPlayer variable (e.g. @all, @classDPlayers)
amountYesA number bigger or equal 0The amount of artificial health to ADD to the player. Use a negative number to remove.
limitNoA number bigger or equal 0The upper limit of AHP.
decayNoA number bigger or equal 0How much AHP is lost per second.
efficacyNoA number between 0% and 100% (inclusive)The percent of incoming damage absorbed by AHP.
sustainNoDuration in format #ms, #s, #m, #h (e.g. 5s or 2m)The amount of time before the AHP begins to decay.
isPersistentNobool (true or false) valueWhether 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.