BIS fnc getRespawnInventories: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(37 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.60


| arma3 |= Game name
|gr1= Respawn


|1.00|= Game version
|descr= Return respawn inventories available for the given target.
____________________________________________________________________________________________


| <pre>/*
|s1= [target, showDisabled, returnAllInfo] call [[BIS_fnc_getRespawnInventories]]


Description:
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]]
Return respawn inventories available for the given unit


Parameter(s):
|p2= showDisabled: [[Boolean]] - (Optional, default [[false]]) [[true]] to show even inventories disabled by curator
0: OBJECT, GROUP, SIDE or NAMESPACE
1 (Optional): BOOL - true to show even inventories disabled by curator


Returns:
|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
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Array]] of [[String]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_getRespawnInventories]]; --> |= Syntax
|x1= <sqf>private _respawnInfo = [player] call BIS_fnc_getRespawnInventories;</sqf>


|p1= |= Parameter 1
|x2= <sqf>private _respawnInfo = [west, true, false] call BIS_fnc_getRespawnInventories;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: Respawn]] [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_removeRespawnInventory]] [[BIS_fnc_setRespawnInventory]] [[BIS_fnc_getRespawnMarkers]] [[BIS_fnc_getRespawnPositions]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Respawn|{{uc:getRespawnInventories}}]]
[[Category:Functions|{{uc:getRespawnInventories}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getRespawnInventories}}]]

Latest revision as of 17:00, 13 July 2022

Hover & click on the images for description

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: Respawn BIS_fnc_addRespawnInventory BIS_fnc_removeRespawnInventory BIS_fnc_setRespawnInventory BIS_fnc_getRespawnMarkers BIS_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