addonFiles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Example tweak)
m (description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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



Revision as of 18:48, 11 July 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.99|1.99]]
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:
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]]

Notes

Bottom Section