BIS fnc addRespawnPosition: Difference between revisions
Jump to navigation
Jump to search
(see also) |
(Updated params and example.) |
||
Line 23: | Line 23: | ||
*[[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)''': | |||
*[[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]]) |= Return value | ||
Line 29: | Line 31: | ||
|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"] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |= | |x2= <code>myRespawn<nowiki> = [</nowiki>[[missionNamespace]],"arena","Battle Arena"] [[call]] [[BIS_fnc_addRespawnPosition]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 13:15, 10 June 2016
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
- 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