Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BunnyNabbit/celaria-formats/llms.txt
Use this file to discover all available pages before exploring further.
PlayerSpawnPoint marks the lizard spawn — the position and facing direction of the player at the start of a run. Every map needs exactly one PlayerSpawnPoint for the player to know where to begin. It extends Instance and has an instanceId of 2.
Constructor
position to [0, 0, 0] and rotation to 0.
Properties
World-space position of the spawn point, inherited from
Instance. Defaults to [0, 0, 0]. Z is the gravity axis, so Z controls how high above the ground the player spawns.The initial facing direction of the player at spawn, in radians. Defaults to
0, which corresponds to facing along the positive Y axis. Use this to orient the player toward the first objective.Getters
Always returns
2. Used during binary serialization to identify this object as a PlayerSpawnPoint.Example
Adding a spawn point to a map
Rotating the spawn to face a specific direction
Reading a spawn point from a parsed map
Related
Instance
Abstract base class that PlayerSpawnPoint extends.
Map objects guide
Overview of all map object types and how to use them.
Block
Rectangular geometry block — the terrain players spawn on.
Types reference
Vector3 and other type definitions.