BIS fnc respawnMenuPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )R([a-z])" to "$1r$3")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
 
Line 10: Line 10:
|s1= [player, respawnDelay, revive] call [[BIS_fnc_respawnMenuPosition]]
|s1= [player, respawnDelay, revive] call [[BIS_fnc_respawnMenuPosition]]


|p1= player: [[Object]] - Player unit
|p1= player: [[Object]] - player unit


|p2= respawnDelay: [[Number]] - (Optional, default 3) respawn delay
|p2= respawnDelay: [[Number]] - (Optional, default 3) respawn delay

Latest revision as of 15:45, 8 November 2023

Hover & click on the images for description

Description

Description:
Shows respawn menu. Closes it if the player is alive.
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[player, respawnDelay, revive] call BIS_fnc_respawnMenuPosition
Parameters:
player: Object - player unit
respawnDelay: Number - (Optional, default 3) respawn delay
revive: Boolean - (Optional, default false) if unit was revived
Return Value:
Nothing

Examples

Example 1:
[player,5] call BIS_fnc_respawnMenuPosition;

Additional Information

See also:
Arma 3: Respawn

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 2021-01-15 - 18:14 (UTC)
Ilias38rus
Use `setPlayerRespawnTime 0;` to respawn on selected position (certain gets selected by default), or position of death, if there is no the RP-s .