Kanda Players 0.7.0
Loading...
Searching...
No Matches
SpawnPointServerSystem Struct Reference

If a player has RequestSpawnPoint enabled, this system teleports the player to its last known location or a randomized spawn point. More...

+ Inheritance diagram for SpawnPointServerSystem:

Public Member Functions

void OnCreate (ref SystemState state)
 
void OnUpdate (ref SystemState state)
 

Detailed Description

If a player has RequestSpawnPoint enabled, this system teleports the player to its last known location or a randomized spawn point.

We get the latest known location from the dynamic buffer of RespawnPoint or select a random viable SpawnPoint and invoke a TeleportCommand which prompts the player to update its local origin.


The documentation for this struct was generated from the following file: