playerRespawnTime: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (Text replacement - ">Posted on June ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-06-$1")
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|version1= 1.00


|1.00
|game2= arma2
|version2= 1.00


|gr1 = Multiplayer
|game3= arma2oa
|version3= 1.50


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


| '''playerRespawnTime'''
|game5= arma3
|version5= 0.50


| [[Number]]
|gr1= Multiplayer
 
 
|x1= <code>[[waitUntil]] {[[playerRespawnTime]] <= 0};</code>
|descr= Return the player's remaining time before respawn, or -1 if it is not available (such as when the player is alive).
 
|s1= '''playerRespawnTime'''
 
|r1= [[Number]]
 
|x1= <sqf>waitUntil { playerRespawnTime <= 0 };</sqf>


|seealso= [[setPlayerRespawnTime]]
|seealso= [[setPlayerRespawnTime]]
Line 19: Line 30:


<dl class="command_description">
<dl class="command_description">
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on June 21, 2007 - 18:33 (CEST)</dd>
<dd class="notedate">Posted on 2007-06-21 - 18:33 (CEST)</dd>
<dt class="note">[[User:Sy|Sy]]</dt>
<dt class="note">[[User:Sy|Sy]]</dt>
<dd class="note">When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
<dd class="note">When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
Line 29: Line 41:
existing one as defined either in the mission editor or in a script as [[player]] or playable.
existing one as defined either in the mission editor or in a script as [[player]] or playable.
</dd>
</dd>
</dl>
</dl>
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 23:08, 13 May 2023

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.
Only post proven facts here! Add Note
Posted on 2007-06-21 - 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.