addonFiles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Mods and Addons |GROUP1= | |gr1= Mods and Addons |GROUP1= | ||
|Returns a list of files present in the addon.<br> | |Returns a list of files present in the addon.<br> | ||
{{Informative|Querying protected <tt>.ebo</tt> addons returns empty array <tt>[]</tt>.}}|DESCRIPTION= | {{Informative|Querying protected <tt>.ebo</tt> addons returns empty array <tt>[]</tt>.}}|DESCRIPTION= | ||
|s1= [[addonFiles]] [pboPrefix, fileExtension] |SYNTAX= | |s1= [[addonFiles]] [pboPrefix, fileExtension] |SYNTAX= | ||
Line 22: | Line 19: | ||
|r1= [[Array]] of [[String]]s|RETURNVALUE= | |r1= [[Array]] of [[String]]s|RETURNVALUE= | ||
|x1= <code>[[addonFiles]] ["a3\3den\", ".paa"]; | |x1= <code>[[addonFiles]] ["a3\3den\", ".paa"]; | ||
Line 35: | Line 31: | ||
] | ] | ||
<nowiki>*</nowiki>/}}</code>|EXAMPLE1= | <nowiki>*</nowiki>/}}</code>|EXAMPLE1= | ||
Revision as of 00:10, 17 January 2021
Description
- Description:
- Returns a list of files present in the addon.
- Groups:
- Mods and Addons
Syntax
- Syntax:
- addonFiles [pboPrefix, fileExtension]
- Parameters:
- [pboPrefix, fileExtension] - Array
- pboPrefix: String - addon prefix available from allAddonsInfo
- fileExtension (Optional): String - file extension to filter results, for example ".paa"
- Return Value:
- Array of Strings
Examples
- Example 1:
addonFiles ["a3\3den\", ".paa"]; /* [ "a3\3den\data\attributes\formation\ech_left_ca.paa", "a3\3den\data\attributes\formation\stag_column_ca.paa", "a3\3den\data\attributes\stance\down_ca.paa", "a3\3den\data\cfg3den\layer\icondisabled_ca.paa", "a3\3den\data\controlsgroups\diagmousecontrol\mouse_ca.paa", ... ] */
Additional Information
- See also:
- allAddonsInfo
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