BIS fnc setRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
Line 12: Line 12:
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] - Target where respawn inventories should be saved
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] - Target where respawn inventories should be saved


|p2= inventory: [[Array]] of [[String|strings]] - Classes from CfgInventory or CfgVehicles
|p2= inventory: [[Array]] of [[String|strings]] - classes from CfgInventory or CfgVehicles


|r1= [[Array]] - in format [target, id] used in [[BIS_fnc_removeRespawnInventory]]
|r1= [[Array]] - in format [target, id] used in [[BIS_fnc_removeRespawnInventory]]

Revision as of 14:00, 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