BIS fnc exportInventory: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Killzone Kid (talk | contribs) (corrected) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Exports unit's loadout as a [[String]], also [[copyToClipboard | copies]] it to clipboard. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 15: | Line 15: | ||
|p1= unit: [[Object]] - Unit whose loadout should be saved|PARAMETER1= | |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"- | *1: "script"- scripting commands, target is referred to as {{Inline code|_unit}} | ||
*2: "init" - | *2: "init" - scripting commands, target is referred to as {{Inline code|this}} | ||
*3: "config" - | *3: "config" - config 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 (applicable to "script" and "init" only)|PARAMETER3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[String]] - [[SQF]] code |RETURNVALUE= | | [[String]] - [[SQF]] code or [[Config]] text when "config" option is chosen|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 19:01, 9 June 2019
Description
- Description:
- Exports unit's loadout as a String, also copies it to clipboard.
- 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" - config attributes
- 1: "script"- scripting commands, target is referred to as
- identity: Boolean - True to also export face, voice and insignia (applicable to "script" and "init" only)
- Return Value:
- String - SQF code or Config text when "config" option is chosen
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