BIS fnc getRespawnInventories: 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 | ||
|1.60 | |1.60 | ||
|gr1= Respawn | |gr1= Respawn | ||
| Return respawn inventories available for the given target. | | Return respawn inventories available for the given target. | ||
| [target, showDisabled, returnAllInfo] call [[BIS_fnc_getRespawnInventories]] | | [target, showDisabled, returnAllInfo] call [[BIS_fnc_getRespawnInventories]] | ||
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] | |p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] | ||
|p2= showDisabled: [[Boolean]] - (Optional, default [[false]]) [[true]] to show even inventories disabled by curator | |p2= showDisabled: [[Boolean]] - (Optional, default [[false]]) [[true]] to show even inventories disabled by curator | ||
|p3= returnAllInfo: [[Boolean]] - (Optional, default [[false]]) [[true]] to return namespace, inventory and role limits (used in the new respawn screen), [[false]] to return only inventories | |p3= returnAllInfo: [[Boolean]] - (Optional, default [[false]]) [[true]] to return namespace, inventory and role limits (used in the new respawn screen), [[false]] to return only inventories | ||
| [[Array]] of [[String]] | | [[Array]] of [[String]] | ||
|x1= <code>[[private]] _respawnInfo = [<nowiki/>[[player]]] [[call]] [[BIS_fnc_getRespawnInventories]];</code> | |x1= <code>[[private]] _respawnInfo = [<nowiki/>[[player]]] [[call]] [[BIS_fnc_getRespawnInventories]];</code> | ||
|x2= <code>[[private]] _respawnInfo = [<nowiki/>[[west]], [[true]], [[false]]] [[call]] [[BIS_fnc_getRespawnInventories]];</code> | |x2= <code>[[private]] _respawnInfo = [<nowiki/>[[west]], [[true]], [[false]]] [[call]] [[BIS_fnc_getRespawnInventories]];</code> | ||
| [[Arma 3 Respawn]], [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_removeRespawnInventory]], [[BIS_fnc_setRespawnInventory]], [[BIS_fnc_getRespawnMarkers]], [[BIS_fnc_getRespawnPositions]] | | [[Arma 3 Respawn]], [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_removeRespawnInventory]], [[BIS_fnc_setRespawnInventory]], [[BIS_fnc_getRespawnMarkers]], [[BIS_fnc_getRespawnPositions]] | ||
}} | }} | ||
Revision as of 22:59, 17 January 2021
Description
- Description:
- Return respawn inventories available for the given target.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [target, showDisabled, returnAllInfo] call BIS_fnc_getRespawnInventories
- Parameters:
- target: Namespace, Side, Group or Object
- showDisabled: Boolean - (Optional, default false) true to show even inventories disabled by curator
- returnAllInfo: Boolean - (Optional, default false) true to return namespace, inventory and role limits (used in the new respawn screen), false to return only inventories
- Return Value:
- Array of String
Examples
- Example 1:
private _respawnInfo = [player] call BIS_fnc_getRespawnInventories;
- Example 2:
private _respawnInfo = [west, true, false] call BIS_fnc_getRespawnInventories;
Additional Information
- See also:
- Arma 3 RespawnBIS_fnc_addRespawnInventoryBIS_fnc_removeRespawnInventoryBIS_fnc_setRespawnInventoryBIS_fnc_getRespawnMarkersBIS_fnc_getRespawnPositions
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