BIS fnc setRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Fix page)
Line 1: Line 1:
{{Function|= Comments
{{Function|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma 3 |= Game name
| arma 3 |Game name=


|1.00|= Game version
|1.60|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set respawn loadouts.|DESCRIPTION=
| Set respawn loadouts. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 13: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


|p1= input: [[Object]], [[Group]], [[Side]] or [[Namespace]] - Target where respawn inventories should be saved|PARAMETER1=
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] - Target where respawn inventories should be saved |PARAMETER1=
|p2= input: [[Array]] of [[String|strings]] - Classes from CfgInventory or CfgVehicles|PARAMETER2=
 
|p2= inventory: [[Array]] of [[String|strings]] - Classes from CfgInventory or CfgVehicles |PARAMETER2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] - in format:
| [[Array]] - in format [target, id] used in [[BIS_fnc_removeRespawnInventory]] |RETURNVALUE=
*0: target
*1: ids (used in [[BIS_fnc_removeRespawnInventory]])|RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[ [[player]], ["B_T_Recon_TL_F"] ] [[call]] [[BIS_fnc_setRespawnInventory]];</code> |=
|x1= <code><nowiki>[</nowiki>[[player]], ["B_T_Recon_TL_F"]] [[call]] [[BIS_fnc_setRespawnInventory]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[:Category:Function Group: Respawn|Respawn functions]], [[BIS_fnc_removeRespawnInventory]], [[BIS_fnc_addRespawnInventory]] |SEEALSO=
| [[Arma 3 Respawn]], [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_removeRespawnInventory]], [[BIS_fnc_getRespawnInventories]] |SEEALSO=
}}
}}



Revision as of 21:01, 27 July 2019

Hover & click on the images for description

Description

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

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 RespawnBIS_fnc_addRespawnInventoryBIS_fnc_removeRespawnInventoryBIS_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

Notes

Bottom Section