BIS fnc addRespawnPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed own note)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]]. |= Description
| Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [<target>,<position>] call [[BIS_fnc_addRespawnPosition]]; |= Syntax
| [<target>,<position>] call [[BIS_fnc_addRespawnPosition]]; |SYNTAX=


|p1= '''target''': Receiver of the respawn position
|p1= '''target''': Receiver of the respawn position
Line 26: Line 26:
*[[String]] - respawn name, can be text or link to localization key|=
*[[String]] - respawn name, can be text or link to localization key|=


| [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) |= Return value
| [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 34: Line 34:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]]|= See also
| [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]]|SEEALSO=


}}
}}

Revision as of 12:26, 7 April 2019

Hover & click on the images for description

Description

Description:
Add a respawn position for respawn menu.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[<target>,<position>] call BIS_fnc_addRespawnPosition;
Parameters:
target: Receiver of the respawn position
position:
  • Array - format Position
  • Object - specific object. When some crew positions are available and unlocked, players will be respawned on them, otherwise they will appear around the object.
  • String - marker name
name (optional):
  • String - respawn name, can be text or link to localization key
Return Value:
Array - format [target,id] (used in BIS_fnc_removeRespawnPosition)

Examples

Example 1:
[west, myRespawnAPC] call BIS_fnc_addRespawnPosition;
Example 2:
myRespawn = [missionNamespace,"arena","Battle Arena"] call BIS_fnc_addRespawnPosition;

Additional Information

See also:
BIS_fnc_removeRespawnPositionArma 3 RespawnBIS_fnc_respawnTickets

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

Notes

Bottom Section

Posted on July 1, 2016 - 11:22 (UTC)
Krzmbrzl00
Make sure the used Position is in format Position3D (i.e. it contains a third coordinate (z-coordinate)) because otherwise you will get an error as soon as you open the respawn screen and you will be respawned at position [0,0,0] (lower left corner of the map), although the map marker for the spawn position is placed as intended