addonFiles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
m (Updated formatting of parameters to be consistent with other pages) |
||
Line 11: | Line 11: | ||
|s1= [[addonFiles]] [pboPrefix, fileExtension] | |s1= [[addonFiles]] [pboPrefix, fileExtension] | ||
|p1= [pboPrefix, fileExtension] | |p1= [pboPrefix, fileExtension]: [[Array]] | ||
|p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]] | |p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]] | ||
|p3= fileExtension | |p3= fileExtension: [[String]] - (Optional) file extension to filter results, for example <tt>".paa"</tt> | ||
|r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[String]]s |
Revision as of 10:14, 9 October 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: String - (Optional) 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