addonFiles: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (format) |
m (Example tweak) |
||
Line 21: | Line 21: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[addonFiles]] ["a3\3den\", ".paa"];</code>|EXAMPLE1= | |x1= <code>[[addonFiles]] ["a3\3den\", ".paa"]; | ||
{{codecomment|/* | |||
[ | |||
"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", | |||
... | |||
] | |||
<nowiki>*</nowiki>/}}</code>|EXAMPLE1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 12:53, 16 May 2020
Description
- Description:
- Returns the list of files contained in the addon
- Groups:
- Uncategorised
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
[[Category:Introduced with arma3dev version 1.99]][[ Category: arma3dev: New Scripting Commands | ADDONFILES]][[ Category: arma3dev: Scripting Commands | ADDONFILES]]