Skip to content

findPlayerHero

findPlayerHero(world): Entity | undefined

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

The hero this side’s player steers, or the first hero where none is under the client’s authority, as a harness that spawns her bare has. In a room every player’s hero is in the world, and only one is hers.

Parameter Type
world World

Entity | undefined