Kanda Players 0.7.0
|
If a player has RequestSpawnPoint enabled, this system teleports the player to its last known location or a randomized spawn point. More...
Public Member Functions | |
void | OnCreate (ref SystemState state) |
void | OnUpdate (ref SystemState state) |
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.