Skip to content

five-on-it / packages/sim/src/damage / setMaxHealth

Function: setMaxHealth() ​

setMaxHealth(sim, eid, health): void

Defined in: packages/sim/src/damage.ts:86

Gives a character its own full hit points (1 to MAX_HEALTH; a debug switch) and heals it to them; 0 gives it back its kind's.

Parameters ​

sim ​

SimWorld

eid ​

number

health ​

number

Returns ​

void