Arma 3 Scripting

Command in Mods and Addons

addonFiles

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns a list of files present in the addon.

Note

Querying protected .ebo addons will return an empty array [].

Syntax

addonFiles [prefix, fileExtension]

Parameters:

Returns: 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",
        ...
    ]
*/

Example 2

// Since Arma 3 2.22
addonFiles ["$mission", ".sqf"];

See also

allAddonsInfo