BIS fnc addRespawnPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Some wiki formatting)
Line 8: Line 8:
|eff= global
|eff= global


|descr= Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]].
|descr= Add a respawn position for the [[Arma 3: Respawn|{{arma3}} Respawn Menu]].


|s1=[<target>,<position>] call [[BIS_fnc_addRespawnPosition]]
|s1= [target, position, name] call [[BIS_fnc_addRespawnPosition]]


|p1= '''target''': Receiver of the respawn position
|p1= '''target''': [[Namespace]], [[Side]], [[Group]] or [[Object]] - receiver of the respawn position. Use [[missionNamespace]] to add the position to everyone
*[[Namespace]] - use [[missionNamespace]] to add the position to everyone
*[[Side]]
*[[Group]]
*[[Object]]
|p2= '''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


|p3= '''name (optional)''':
|p2= '''position''': [[Array]], [[Object]] or [[String]]
*[[String]] - respawn name, can be text or link to localization key|PARAMETER3=
* [[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
 
|p3= '''name''': [[String]] - (Optional) respawn name, can be text or link to localization key


|r1= [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]])
|r1= [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]])


|x1= <code><nowiki>[</nowiki>[[west]], myRespawnAPC] [[call]] [[BIS_fnc_addRespawnPosition]];</code>
|x1= <code>[<nowiki/>[[west]], myRespawnAPC] [[call]] [[BIS_fnc_addRespawnPosition]];</code>


|x2= <code>myRespawn<nowiki> = [</nowiki>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code>
|x2= <code>myRespawn = [<nowiki/>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code>


|seealso= [[BIS_fnc_removeRespawnPosition]], [[Arma 3: Respawn]], [[BIS_fnc_respawnTickets]]
|seealso= [[BIS_fnc_removeRespawnPosition]], [[Arma 3: Respawn]], [[BIS_fnc_respawnTickets]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Krzmbrzl00
<dt></dt>
|timestamp= 20160601112200
<dd class="notedate">Posted on July 1, 2016 - 11:22 (UTC)</dd>
|text= 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
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt>
}}
<dd class="note">
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
</dd>
 
</dl>

Revision as of 22:30, 28 August 2021

Hover & click on the images for description

Description

Description:
Add a respawn position for the Arma 3 Respawn Menu.
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[target, position, name] call BIS_fnc_addRespawnPosition
Parameters:
target: Namespace, Side, Group or Object - receiver of the respawn position. Use missionNamespace to add the position to everyone
position: Array, Object or String
  • 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: String - (Optional) 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
Krzmbrzl00 - c
Posted on Jun 01, 2016 - 11:22 (UTC)
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