BIS fnc exportInventory: Difference between revisions
Jump to navigation
Jump to search
m (page filling) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Export unit's loadout. |= | | Export unit's loadout. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [unit,type,identity] call [[BIS_fnc_exportInventory]] |= | | [unit,type,identity] call [[BIS_fnc_exportInventory]] |SYNTAX= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 18: | Line 18: | ||
*2: "init" - Scripting commands, target is referred to as {{Inline code|this}} | *2: "init" - Scripting commands, target is referred to as {{Inline code|this}} | ||
*3: "config" - CfgVehicles attributes|= Parameter 2 | *3: "config" - CfgVehicles attributes|= Parameter 2 | ||
|p3= identity: [[Boolean]]] - [[True]] to also export face, voice and insignia|= | |p3= identity: [[Boolean]]] - [[True]] to also export face, voice and insignia|PARAMETER3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[String]] - [[SQF]] code |= | | [[String]] - [[SQF]] code |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 27: | Line 27: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[BIS_fnc_loadInventory]], [[BIS_fnc_deleteInventory]], [[BIS_fnc_saveInventory]], [[getUnitLoadout]] |= | | [[BIS_fnc_loadInventory]], [[BIS_fnc_deleteInventory]], [[BIS_fnc_saveInventory]], [[getUnitLoadout]] |SEEALSO= | ||
}} | }} | ||
Revision as of 11:28, 7 April 2019
Description
- Description:
- Export unit's loadout.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [unit,type,identity] call BIS_fnc_exportInventory
- Parameters:
- unit: Object - Unit whose loadout should be saved
- type: String - Export type, can be:
- 1: "script"- Scripting commands, target is referred to as
_unit
- 2: "init" - Scripting commands, target is referred to as
this
- 3: "config" - CfgVehicles attributes
- 1: "script"- Scripting commands, target is referred to as
- identity: Boolean] - True to also export face, voice and insignia
- Return Value:
- String - SQF code
Examples
- Example 1:
[ player, "init", true ] call BIS_fnc_exportInventory;
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