Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
headlessGame HeadlessGame
position Vector3

Entity