BIS fnc exportInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Export unit's loadout. |= Description
 
____________________________________________________________________________________________
Description:
Export unit's loadout
 
Parameter(s):
0: OBJECT - unit of which loadout will be export
1: STRING - export type
"script" - scripting commands, target is referred to as _unit
"init" - scripting commands, target is referred to as this
"config" - CfgVehicles attributes
2: BOOL - true to export identity (face, voice and insignia)
 
Returns:
STRING - SQF code
*/


| [unit,type,identity] call [[BIS_fnc_exportInventory]] |= Syntax
____________________________________________________________________________________________


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= unit: [[Object]] - Unit whose loadout should be saved|= Parameter 1
|p2= type: [[String]] - Export type, can be:
*1: "script"- Scripting commands, target is referred to as {{Inline code|_unit}}
*2: "init" - Scripting commands, target is referred to as {{Inline code|this}}
*3: "config" - CfgVehicles attributes|= Parameter 2
|p3= identity: [[Boolean]]] - [[True]] to also export face, voice and insignia|= Parameter3
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_exportInventory]]; --> |= Syntax
| [[String]] - [[SQF]] code |= Return value
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[ [[player]], "init", [[true]] ] [[call]] [[BIS_fnc_exportInventory]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_saveInventory]][[BIS_fnc_loadInventory]][[BIS_fnc_deleteInventory]]|= See also
| [[BIS_fnc_loadInventory]], [[BIS_fnc_deleteInventory]], [[BIS_fnc_saveInventory]], [[getUnitLoadout]] |= See also
}}


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 15:55, 29 May 2018

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