placeCharacter
placeCharacter(
headlessGame,position):Entity
Stands the player at position with full health and an empty wallet,
spawning a character where the world has none yet, and returns the
player’s character, which reads as every entity a game holds does. No
player controls the character it spawns: a behaviour that meets a
character a player controls, such as a pickup, meets the character
once addPlayer(game.world, { name, controlled: character }) seats one.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
headlessGame |
HeadlessGame |
position |
Vector3 |
Returns
Section titled “Returns”Entity