Skip to content

3 ‐ Spawn points

Kaden edited this page Nov 27, 2024 · 1 revision

SpawnPoint

image

  • Marks a place the player can spawn in
  • The placeholder model indicates the starting centre position and direction
    • This is relative to the play-space centre

SpawnPointManager

  • Automatically created when the first SpawnPoint is created
  • Manages which Spawn Point the player spawns in
    • Can be changed by calling SetSpawnPoint(spawnPoint)
  • Set Spawn Point to the starting Spawn Point
  • Call Respawn() from another script to respawn the player at the current Spawn Point
  • Change Start Gravity for different acceleration by gravity upon start
  • Spawns Special Prefab in front of the player upon respawn
    • Special Prefab is destroyed on death and re-instantiated on respawn
    • Special Offset determines the local offset from the Spawn Point at which Special Prefab spawns
Clone this wiki locally