BIS fnc exportInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 13: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


|p1= unit: [[Object]] - Unit whose loadout should be saved|= Parameter 1
|p1= unit: [[Object]] - Unit whose loadout should be saved|PARAMETER1=
|p2= type: [[String]] - Export type, can be:
|p2= type: [[String]] - Export type, can be:
*1: "script"- Scripting commands, target is referred to as {{Inline code|_unit}}
*1: "script"- Scripting commands, target is referred to as {{Inline code|_unit}}
*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|PARAMETER2=
|p3= identity: [[Boolean]]] - [[True]] to also export face, voice and insignia|PARAMETER3=
|p3= identity: [[Boolean]]] - [[True]] to also export face, voice and insignia|PARAMETER3=
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 14:30, 7 April 2019

Hover & click on the images for description

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

See also:
BIS_fnc_loadInventoryBIS_fnc_deleteInventoryBIS_fnc_saveInventorygetUnitLoadout

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