BIS fnc setRespawnInventory: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma 3 |= Game name | ||
|1.00|= Game version | |1.00|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Set respawn loadouts.|= Description | ||
____________________________________________________________________________________________ | |||
| [target, inventory] call [[BIS_fnc_setRespawnInventory]] |= Syntax | |||
____________________________________________________________________________________________ | |||
|p1= input: [[Object]], [[Group]], [[Side]] or [[Namespace]] - Target where respawn inventories should be saved|= Parameter 1 | |||
|p2= input: [[Array]] of [[String|strings]] - Classes from CfgInventory or CfgVehicles|= Parameter 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[Array]] - in format: | ||
*0: target | |||
*1: ids (used in [[BIS_fnc_removeRespawnInventory]])|= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>[ [[player]], ["B_T_Recon_TL_F"] ] [[call]] [[BIS_fnc_setRespawnInventory]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[:Category:Function Group: Respawn|Respawn functions]], [[BIS_fnc_removeRespawnInventory]] |= See also | ||
}} | }} | ||
Revision as of 10:46, 31 May 2018
Description
- Description:
- Set respawn loadouts.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [target, inventory] call BIS_fnc_setRespawnInventory
- Parameters:
- input: Object, Group, Side or Namespace - Target where respawn inventories should be saved
- input: Array of strings - Classes from CfgInventory or CfgVehicles
- Return Value:
- Array - in format:
- 0: target
- 1: ids (used in BIS_fnc_removeRespawnInventory)
Examples
- Example 1:
[ player, ["B_T_Recon_TL_F"] ] call BIS_fnc_setRespawnInventory;
Additional Information
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