BIS fnc setRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(36 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= Set respawn loadouts.
____________________________________________________________________________________________


| <pre>/*
|s1= [target, inventory] call [[BIS_fnc_setRespawnInventory]]


Description:
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] - target where respawn inventories should be saved
Set respawn loadouts


Parameter(s):
|p2= inventory: [[Array]] of [[String]]s - classes from CfgInventory or CfgVehicles
0:
NAMESPACE
SIDE
GROUP
OBJECT
1: ARRAY of STRINGs - CfgInventory or CfgVehicles classes


Returns:
|r1= [[Array]] - in format [target, id] used in [[BIS_fnc_removeRespawnInventory]]
ARRAY in format [target,ids] (used in BIS_fnc_removeRespawnInventory)
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setRespawnInventory]]; --> |= Syntax
|x1= <sqf>[player, ["B_T_Recon_TL_F"]] call BIS_fnc_setRespawnInventory;</sqf>
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: Respawn]] [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_removeRespawnInventory]] [[BIS_fnc_getRespawnInventories]]
}}
}}
<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:setRespawnInventory}}]]
[[Category:Functions|{{uc:setRespawnInventory}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setRespawnInventory}}]]

Latest revision as of 16:51, 8 November 2023

Hover & click on the images for description

Description

Description:
Set respawn loadouts.
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[target, inventory] call BIS_fnc_setRespawnInventory
Parameters:
target: Namespace, Side, Group or Object - target where respawn inventories should be saved
inventory: Array of Strings - classes from CfgInventory or CfgVehicles
Return Value:
Array - in format [target, id] used in BIS_fnc_removeRespawnInventory

Examples

Example 1:
[player, ["B_T_Recon_TL_F"]] call BIS_fnc_setRespawnInventory;

Additional Information

See also:
Arma 3: Respawn BIS_fnc_addRespawnInventory BIS_fnc_removeRespawnInventory BIS_fnc_getRespawnInventories

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