addonFiles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|Comments= ____________________________________________________________________________________________ | arma3dev |Game name= |1.99 |Game version= ________________...")
 
m (Some wiki formatting)
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3
|version1= 2.00


|1.99 |Game version=
|gr1= Mods and Addons
____________________________________________________________________________________________


|Returns the list of files contained in the addon|DESCRIPTION=
|descr=Returns a list of files present in the addon.<br>
____________________________________________________________________________________________
{{Feature|informative|Querying protected {{hl|.ebo}} addons will return an empty array {{hl|[]}}.}}


|s1= [[addonFiles]] [pboPrefix, (fileExtension)] |SYNTAX=
|s1= [[addonFiles]] [pboPrefix, fileExtension]


|p1= pboPrefix: [[String]] |PARAMETER1=
|p1= pboPrefix: [[String]] - addon prefix available from [[allAddonsInfo]]


|p2= fileExtension: [[String]] |PARAMETER2=
|p2= fileExtension: [[String]] - (Optional) file extension to filter results, for example {{hl|".paa"}}


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


____________________________________________________________________________________________
|x1= <sqf>
 
addonFiles ["a3\3den\", ".paa"];
|x1= <code>[[addonFiles]] ["a3\3den\", ".paa"];</code>|EXAMPLE1=
/*
____________________________________________________________________________________________
[
 
"a3\3den\data\attributes\formation\ech_left_ca.paa",
 
"a3\3den\data\attributes\formation\stag_column_ca.paa",
|seealso= [[allAddonsInfo]] |SEEALSO=
"a3\3den\data\attributes\stance\down_ca.paa",
"a3\3den\data\cfg3den\layer\icondisabled_ca.paa",
"a3\3den\data\controlsgroups\diagmousecontrol\mouse_ca.paa",
...
]
*/
</sqf>


|seealso= [[allAddonsInfo]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:09, 4 May 2022

Hover & click on the images for description

Description

Description:
Returns a list of files present in the addon.
Querying protected .ebo addons will return an empty array [].
Groups:
Mods and Addons

Syntax

Syntax:
addonFiles [pboPrefix, fileExtension]
Parameters:
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