BIS fnc respawnBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{placeholder}}" to "{{Wiki|placeholder}}")
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.96
|1.95


|gr1= Respawn
|gr1= Respawn


| <pre>/*
|descr= Handles respawn camps functionality. Whoever "assembles" a camp from backpack it will receive a new respawn position. When backpack object has 'respawnNearbyPlayers' attribute set to 1, nearby players will receive the respawn position as well.
Author:
{{Feature|Important|Only for use with respawn camp event handlers!}}
Killzone_Kid


Description:
|s1= [] call [[BIS_fnc_respawnBackpack]]
Handles respawn camps functionality.
Whover "assembles" a camp from backpack it will receive a new respawn position.
When backpack object has 'respawnNearbyPlayers' attribute set to 1, nearby players will receive the respawn position as well.
 
Parameter(s):
!!! FOR USE WITH RESPAWN CAMP EVENT HANDLERS ONLY !!!
0: STRING - mode
1: ARRAY - mode arguments
 
Returns:
NOTHING
Curator can drop a sleeping bag next to a player to give him respawn point or a tent, to give a group of players within 50m a respawn point
Curator placed respawn item cannot be disassembled by a player and could only be deleted by curator or destroyed by player
Destroyed tent or sleeping back is deleted soon after
A sleeping bag is individual respawn point and will also get automatically deleted when player leaves MP session
A tent will be assigned a new owner from the list of allowed tent users when original owner leaves
When the last tent user leaves the tent is deleted
The tent marker contains the name of the current tent owner
Any player can pack player placed tent or sleeping back and then reuse
Curator is informed of a successful assignment of ownership of the tent or sleeping back as well as failure
In case of failure the item is automatically removed from the map
*/</pre>{{Wiki|placeholder}}


|s1= [] call [[BIS_fnc_respawnBackpack]]
|p1= mode: [[String]] - Mode


|p1=  
|p2= arguments: [[Array]] - Mode arguments


|r1=
|r1= [[Nothing]]


|x1=
|x1= -


|seealso= -
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:respawnBackpack}}]]

Revision as of 11:15, 14 June 2021

Hover & click on the images for description

Description

Description:
Handles respawn camps functionality. Whoever "assembles" a camp from backpack it will receive a new respawn position. When backpack object has 'respawnNearbyPlayers' attribute set to 1, nearby players will receive the respawn position as well.
Only for use with respawn camp event handlers!
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[] call BIS_fnc_respawnBackpack
Parameters:
mode: String - Mode
arguments: Array - Mode arguments
Return Value:
Nothing

Examples

Example 1:
-

Additional Information

See also:
-

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