Skip to content

five-on-it / packages/sim/src/character / respawnCharacter

Function: respawnCharacter() ​

respawnCharacter(sim, eid, spawn): void

Defined in: packages/sim/src/character.ts:725

Puts a character back on its feet at a spawn point with full health (after lying dead, or arrested): a pedestrian's post, or a player's respawn point; a player comes back as a ghost for the game's ghostTicks (griefing.ts). One still in a car (dead in its seat, boarding.ts; a mission started again around it) is out of it first.

Parameters ​

sim ​

SimWorld

eid ​

number

spawn ​

SpawnPoint

Returns ​

void