From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Sets the time interval (in seconds) that the player must wait before respawn, for the next respawn only.
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; // next respawn (and only this one) will happen 5s after death
- Example 2:
- Set the respawn duration through variable:
Somewhere else, e.g on objective completion:
or if that player is on another machine:
- Example 3:
- Increase respawn duration every death:
Additional Information
- See also:
- playerRespawnTime respawnVehicle
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here!
Add Note