Skip to content

spawnHero

spawnHero(world, initial): Entity

Defined in: packages/engine/src/gameplay/hero/actions.ts:20

Spawns her from her saved state, moving on the engine’s default settings. The caller destroys the entity.

Parameter Type
world World
initial { facing: number; health: { current: number; maximum: number; }; position: Vector3; }
initial.facing number
initial.health { current: number; maximum: number; }
initial.health.current number
initial.health.maximum number
initial.position Vector3

Entity