playerRespawnTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer |GROUP1=
____________________________________________________________________________________________


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


| '''playerRespawnTime''' |SYNTAX=
| '''playerRespawnTime''' |SYNTAX=


| [[Number]] |RETURNVALUE=
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[waitUntil]] {[[playerRespawnTime]] <= 0};</code> |EXAMPLE1=
|x1= <code>[[waitUntil]] {[[playerRespawnTime]] <= 0};</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[setPlayerRespawnTime]] |SEEALSO=
| [[setPlayerRespawnTime]] |SEEALSO=

Revision as of 03:20, 17 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
playerRespawnTime
Return Value:
Number

Examples

Example 1:
waitUntil {playerRespawnTime <= 0};

Additional Information

See also:
setPlayerRespawnTime

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on June 21, 2007 - 18:33 (CEST)
Sy
When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
Posted on February 25, 2009 - 18:33 (CEST)
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.

Bottom Section