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

CharacterSpawnContext

What onCharacterSpawn receives: the authority the character was spawned under, its entity once it holds its base traits and before the player’s save restores, the player and the scene’s props.

Property Type Description
character PredictedEntity The character’s entity, whose predicted traits the hook may write.
player PlayerEntity | null The player whose character it is; null for one no player plays.
props CharacterSpawnProps The scene’s <CharacterSpawn> props, with what spawnCharacter laid over them.
writer EntityAuthority The authority to write the character with, outside a tick.