{"name":"playerRespawnTime","title":"playerRespawnTime","type":"command","url":"https://community.bistudio.com/wiki/playerRespawnTime","revid":353208,"updated":"2024-03-12T13:57:45Z","groups":["Multiplayer"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Return the player's remaining time before respawn, or -1 if it is not available (such as when the player is alive).","syntaxes":[{"syntax":"playerRespawnTime","params":[],"returns":{"type":"Number","type_expr":"Number"},"form":"nullary"}],"examples":[{"code":["waitUntil { playerRespawnTime <= 0 };"]}],"see_also":["setPlayerRespawnTime"],"notes":[{"user":"Synide","date":"2007-06-21T17:33:00Z","text":"When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1."},{"user":"RolanDecoy","date":"2009-02-25T20:44:00Z","text":"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."}]}