addonFiles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Updated formatting of parameters to be consistent with other pages)
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
Line 7: Line 7:


|descr=Returns a list of files present in the addon.<br>
|descr=Returns a list of files present in the addon.<br>
{{Feature|Informative|Querying protected <tt>.ebo</tt> addons returns empty array <tt>[]</tt>.}}
{{Feature|Informative|Querying protected {{hl|.ebo}} addons returns empty array <tt>[]</tt>.}}


|s1= [[addonFiles]] [pboPrefix, fileExtension]
|s1= [[addonFiles]] [pboPrefix, fileExtension]
Line 14: Line 14:
|p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]]
|p2= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]]


|p3= fileExtension: [[String]] - (Optional) file extension to filter results, for example <tt>".paa"</tt>
|p3= fileExtension: [[String]] - (Optional) file extension to filter results, for example {{hl|".paa"}}


|r1= [[Array]] of [[String]]s
|r1= [[Array]] of [[String]]s

Revision as of 23:44, 15 November 2021

Hover & click on the images for description

Description

Description:
Returns a list of files present in the addon.
Querying protected .ebo addons returns empty array [].
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