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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
Returns
Section titled “Returns”Entity | undefined