BIS fnc respawnMenuPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - ">Posted on January ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-01-$1")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )I([a-z])" to "$1i$3")
Line 14: Line 14:
|p2= respawnDelay: [[Number]] - (Optional, default 3) Respawn delay
|p2= respawnDelay: [[Number]] - (Optional, default 3) Respawn delay


|p3= revive: [[Boolean]] - (Optional, default [[false]]) If unit was revived
|p3= revive: [[Boolean]] - (Optional, default [[false]]) if unit was revived


|r1= [[Nothing]]
|r1= [[Nothing]]

Revision as of 12:29, 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 .