Arma 3 Scripting

playerRespawnTime

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Return the player's remaining time before respawn, or -1 if it is not available (such as when the player is alive).

Syntax

playerRespawnTime

Returns: Number

Examples

Example 1

waitUntil { playerRespawnTime <= 0 };

See also

setPlayerRespawnTime

Community notes

Synide

When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.

RolanDecoy

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.