BIS fnc addRespawnPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1= Respawn | |gr1= Respawn | ||
|eff= global |MPeff= | |eff= global |MPeff= | ||
| Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]]. | | Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]]. | ||
| [<target>,<position>] call [[BIS_fnc_addRespawnPosition]]; | | [<target>,<position>] call [[BIS_fnc_addRespawnPosition]]; | ||
|p1= '''target''': Receiver of the respawn position | |p1= '''target''': Receiver of the respawn position | ||
Line 17: | Line 17: | ||
*[[Side]] | *[[Side]] | ||
*[[Group]] | *[[Group]] | ||
*[[Object]] | *[[Object]] | ||
|p2= '''position''': | |p2= '''position''': | ||
*[[Array]] - format [[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. | *[[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 | *[[String]] - marker name | ||
|p3= '''name (optional)''': | |p3= '''name (optional)''': | ||
*[[String]] - respawn name, can be text or link to localization key|PARAMETER3= | *[[String]] - respawn name, can be text or link to localization key|PARAMETER3= | ||
| [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) | | [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) | ||
|x1= <code><nowiki>[</nowiki>[[west]], myRespawnAPC] [[call]] [[BIS_fnc_addRespawnPosition]];</code> | |x1= <code><nowiki>[</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> = [</nowiki>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code> | ||
| [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]] | | [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]] | ||
}} | }} |
Revision as of 22:36, 17 January 2021
Description
- Description:
- Add a respawn position for respawn menu.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [<target>,<position>] call BIS_fnc_addRespawnPosition;
- Parameters:
- target: Receiver of the respawn position
- Namespace - use missionNamespace to add the position to everyone
- Side
- Group
- Object
- position:
- 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
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
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