playerRespawnTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Fix username) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>waitUntil { playerRespawnTime <= 0 };</sqf> | ||
|seealso= [[setPlayerRespawnTime]] | |seealso= [[setPlayerRespawnTime]] | ||
}} | }} | ||
{{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 | |||
|user= RolanDecoy | |||
|timestamp= 20090225204400 | |||
|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. | |||
}} | |||
existing one as defined either in the mission editor or in a script as [[player]] or playable. | |||
Latest revision as of 14:57, 12 March 2024
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:
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
- 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.
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Multiplayer