playerRespawnTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Fix username)
 
(44 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


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


| '''playerRespawnTime''' |SYNTAX=
|game4= tkoh
|version4= 1.00


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


| [[setPlayerRespawnTime]] |SEEALSO=
|gr1= Multiplayer


|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]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Synide
<!-- Note Section BEGIN -->
|timestamp= 20070621173300
|text= When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
}}


<dd class="notedate">Posted on June 21, 2007 - 18:33 (CEST)</dd>
{{Note
<dt class="note">[[User:Sy|Sy]]</dt>
|user= RolanDecoy
<dd class="note">When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
|timestamp= 20090225204400
</dd>
|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.
<dd class="notedate">Posted on  February 25, 2009  - 18:33 (CEST)</dd>
}}
<dt class="note">[[User:RolanDecoy|RolanDecoy]]</dt>
<dd class="note">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.
</dd>
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|PLAYERRESPAWNTIME]]
[[Category:Scripting Commands ArmA|PLAYERRESPAWNTIME]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:57, 12 March 2024

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
Synide - c
Posted on Jun 21, 2007 - 17:33 (UTC)
When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
RolanDecoy - c
Posted on Feb 25, 2009 - 20:44 (UTC)
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.