setPlayerRespawnTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.57|Game version=
|1.57


|eff= local|Multiplayer Effects=
|eff= local


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer


| Sets the time interval (in seconds) that the player must wait before respawn. It resets to mission default on mission start. In Single Player or when respawn type is GROUP or SIDE in Multiplayer, setting player respawn time has no effect, and [[playerRespawnTime]] will always return -1. |DESCRIPTION=
| Sets the time interval (in seconds) that the player must wait before respawn. It resets to mission default on mission start. In Single Player or when respawn type is GROUP or SIDE in Multiplayer, setting player respawn time has no effect, and [[playerRespawnTime]] will always return -1.


| '''setPlayerRespawnTime''' interval |SYNTAX=
| '''setPlayerRespawnTime''' interval


|p1 = interval: [[Number]] - respawn time in seconds|PARAMETER1=
|p1 = interval: [[Number]] - respawn time in seconds


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




|x1= <code>[[setPlayerRespawnTime]] 5;</code>|EXAMPLE1=
|x1= <code>[[setPlayerRespawnTime]] 5;</code>


| [[playerRespawnTime]], [[respawnVehicle]] |SEEALSO=
| [[playerRespawnTime]], [[respawnVehicle]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets the time interval (in seconds) that the player must wait before respawn. It resets to mission default on mission start. In Single Player or when respawn type is GROUP or SIDE in Multiplayer, setting player respawn time has no effect, and playerRespawnTime will always return -1.
Groups:
Multiplayer

Syntax

Syntax:
setPlayerRespawnTime interval
Parameters:
interval: Number - respawn time in seconds
Return Value:
Nothing

Examples

Example 1:
setPlayerRespawnTime 5;

Additional Information

See also:
playerRespawnTimerespawnVehicle

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