{"name":"addonFiles","operator":null,"title":"addonFiles","type":"command","url":"https://community.bistudio.com/wiki/addonFiles","revid":378237,"updated":"2026-03-20T14:02:49Z","groups":["Mods and Addons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.00"}],"since":{"game":"arma3","name":"Arma 3","version":"2.00"},"arma3_since":"2.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns a list of files present in the addon.\n\n> [!NOTE]\n> Querying protected `.ebo` addons will return an empty array `[]`.","syntaxes":[{"syntax":"addonFiles [prefix, fileExtension]","since":null,"effect":null,"exec":null,"params":[{"name":"prefix","type":"String","optional":false,"default":null,"description":"addon prefix available from allAddonsInfo. Since Arma 3 v2.22 it is possible to also return all files present in a scenario folder from within Eden Editor or Eden preview with the special prefix `$mission`","types":["String"],"since":null,"text":"prefix: String - addon prefix available from allAddonsInfo. Since Arma 3 v2.22 it is possible to also return all files present in a scenario folder from within Eden Editor or Eden preview with the special prefix `$mission`"},{"name":"fileExtension","type":"String","optional":true,"default":null,"description":"file extension to filter results, for example `\".paa\"`","types":["String"],"since":null,"text":"fileExtension: String - (Optional) file extension to filter results, for example `\".paa\"`"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":null,"text":"Array of Strings"},"form":"unary","operator":null,"left":null,"right":{"text":"[prefix, fileExtension]","types":["Array"]}}],"examples":[{"text":"```sqf\naddonFiles [\"a3\\3den\\\", \".paa\"];\n/*\n    [\n        \"a3\\3den\\data\\attributes\\formation\\ech_left_ca.paa\",\n        \"a3\\3den\\data\\attributes\\formation\\stag_column_ca.paa\",\n        \"a3\\3den\\data\\attributes\\stance\\down_ca.paa\",\n        \"a3\\3den\\data\\cfg3den\\layer\\icondisabled_ca.paa\",\n        \"a3\\3den\\data\\controlsgroups\\diagmousecontrol\\mouse_ca.paa\",\n        ...\n    ]\n*/\n```","code":["addonFiles [\"a3\\3den\\\", \".paa\"];\n/*\n\t[\n\t\t\"a3\\3den\\data\\attributes\\formation\\ech_left_ca.paa\",\n\t\t\"a3\\3den\\data\\attributes\\formation\\stag_column_ca.paa\",\n\t\t\"a3\\3den\\data\\attributes\\stance\\down_ca.paa\",\n\t\t\"a3\\3den\\data\\cfg3den\\layer\\icondisabled_ca.paa\",\n\t\t\"a3\\3den\\data\\controlsgroups\\diagmousecontrol\\mouse_ca.paa\",\n\t\t...\n\t]\n*/"]},{"text":"```sqf\n// Since Arma 3 2.22\naddonFiles [\"$mission\", \".sqf\"];\n```","code":["// Since Arma 3 2.22\naddonFiles [\"$mission\", \".sqf\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["allAddonsInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Mods and Addons","Introduced with Arma 3 version 2.00","Scripting Commands"]}