playerRespawnTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
m (Fix username)
 
(55 intermediate revisions by 10 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 remaining time to respawn.  |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[Number]] <nowiki>=</nowiki> ''' playerRespawnTime''' |= Syntax
|game4= tkoh
|version4= 1.00


| [[Number]] |= Return value
|game5= arma3
____________________________________________________________________________________________
|version5= 0.50
 
|x1= <code>@'''playerRespawnTime''' <nowiki>==</nowiki> 0</code> |= Example 1
____________________________________________________________________________________________


| |= See also
|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).


<h3 style="display:none">Notes</h3>
|s1= '''playerRespawnTime'''
<dl class="command_description">
<!-- Note Section BEGIN -->


When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1. --[[User:Sy|Sy]] 18:33, 21 June 2007 (CEST)
|r1= [[Number]]


----
|x1= <sqf>waitUntil { playerRespawnTime <= 0 };</sqf>


|seealso= [[setPlayerRespawnTime]]
}}


<!-- Note Section END -->
{{Note
|user= Synide
|timestamp= 20070621173300
|text= When playerRespawnTime reaches zero the player respawns as expected. When the player has completed respawning this command returns -1.
}}


<!-- Note Section BEGIN -->
{{Note
Also note that spawning doesn't create a body to use, but allows a player to choose an already
|user= RolanDecoy
existing one as defined either in the mission editor or in a script as 'player' or 'playable'.
|timestamp= 20090225204400
<!-- Note Section END -->
|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.
</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 VBS2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14: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.