addonFiles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|2.00 | |2.00 | ||
|gr1= Mods and Addons | |gr1= Mods and Addons | ||
|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>.}} | {{Informative|Querying protected <tt>.ebo</tt> addons returns empty array <tt>[]</tt>.}} | ||
|s1= [[addonFiles]] [pboPrefix, fileExtension] | |s1= [[addonFiles]] [pboPrefix, fileExtension] | ||
|p1= [pboPrefix, fileExtension] - [[Array]] | |p1= [pboPrefix, fileExtension] - [[Array]] | ||
|p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]] | |p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]] | ||
|p3= fileExtension (Optional): [[String]] - file extension to filter results, for example <tt>".paa"</tt> | |p3= fileExtension (Optional): [[String]] - file extension to filter results, for example <tt>".paa"</tt> | ||
|r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[String]]s | ||
Line 30: | Line 30: | ||
... | ... | ||
] | ] | ||
<nowiki>*</nowiki>/}}</code> | <nowiki>*</nowiki>/}}</code> | ||
|seealso= [[allAddonsInfo]] | |seealso= [[allAddonsInfo]] | ||
}} | }} |
Revision as of 00:04, 18 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