Synide
When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Return the player's remaining time before respawn, or -1 if it is not available (such as when the player is alive).
playerRespawnTime
Returns: Number
waitUntil { playerRespawnTime <= 0 };
When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
Also note that spawning doesn't create a body to use, but allows a player to choose an already existing one as defined either in the mission editor or in a script as player or playable.