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.
Extends
Section titled “Extends”Properties
Section titled “Properties”| 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. |