playerRespawnTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| (\[\[[a-zA-Z ]+\]\]) \|x1=" to " |r1=$1 |x1=")
m (Fix username)
 
(16 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
 
|game3= arma2oa
|version3= 1.50
 
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50


|gr1= Multiplayer
|gr1= Multiplayer


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


| '''playerRespawnTime'''
|s1= '''playerRespawnTime'''


|r1=[[Number]]
|r1= [[Number]]


|x1= <code>[[waitUntil]] {[[playerRespawnTime]] <= 0};</code>
|x1= <sqf>waitUntil { playerRespawnTime <= 0 };</sqf>


|seealso= [[setPlayerRespawnTime]]
|seealso= [[setPlayerRespawnTime]]
}}
}}


<dl class="command_description">
{{Note
<dt><dt>
|user= Synide
<dd class="notedate">Posted on June 21, 2007 - 18:33 (CEST)</dd>
|timestamp= 20070621173300
<dt class="note">[[User:Sy|Sy]]</dt>
|text= 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.
}}
</dd>
<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>
</dl>


 
{{Note
{{GameCategory|arma1|Scripting Commands}}
|user= RolanDecoy
{{GameCategory|arma2|Scripting Commands}}
|timestamp= 20090225204400
{{GameCategory|arma3|Scripting Commands}}
|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.
{{GameCategory|tkoh|Scripting Commands}}
}}

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.