BIS fnc addRespawnPosition: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Respawn(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|eff= global |MPeff= | |eff= global |MPeff= | ||
| 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= | ||
Line 30: | Line 27: | ||
| [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) |RETURNVALUE= | | [[Array]] - format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) |RETURNVALUE= | ||
|x1= <code><nowiki>[</nowiki>[[west]], myRespawnAPC] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |Example1= | |x1= <code><nowiki>[</nowiki>[[west]], myRespawnAPC] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |Example1= | ||
|x2= <code>myRespawn<nowiki> = [</nowiki>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |EXAMPLE2= | |x2= <code>myRespawn<nowiki> = [</nowiki>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |EXAMPLE2= | ||
| [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]]|SEEALSO= | | [[BIS_fnc_removeRespawnPosition]], [[Arma 3 Respawn]], [[BIS_fnc_respawnTickets]]|SEEALSO= |
Revision as of 23:38, 16 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
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