addonFiles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "")
Line 39: Line 39:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Command_Group: Mods_and_Addons|{{uc:{{PAGENAME}}}}]]

Revision as of 01:23, 18 January 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 (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

Bottom Section