addonFiles: Difference between revisions
| Lou Montana (talk | contribs) m (Some wiki formatting) | Lou Montana (talk | contribs)  m (Some wiki formatting) | ||
| Line 7: | Line 7: | ||
| |descr=Returns a list of files present in the addon.<br> | |descr=Returns a list of files present in the addon.<br> | ||
| {{Feature|informative|Querying protected {{hl|.ebo}} addons  | {{Feature|informative|Querying protected {{hl|.ebo}} addons will return an empty array {{hl|[]}}.}} | ||
| |s1= [[addonFiles]] [pboPrefix, fileExtension] | |s1= [[addonFiles]] [pboPrefix, fileExtension] | ||
| Line 17: | Line 17: | ||
| |r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[String]]s | ||
| |x1= < | |x1= <sqf> | ||
| addonFiles ["a3\3den\", ".paa"]; | |||
| /* | |||
| 	[ | 	[ | ||
| 		"a3\3den\data\attributes\formation\ech_left_ca.paa", | 		"a3\3den\data\attributes\formation\ech_left_ca.paa", | ||
| Line 27: | Line 28: | ||
| 		... | 		... | ||
| 	] | 	] | ||
| */ | |||
| </sqf> | |||
| |seealso= [[allAddonsInfo]] | |seealso= [[allAddonsInfo]] | ||
| }} | }} | ||
Latest revision as of 11:09, 4 May 2022
Description
- Description:
- Returns a list of files present in the addon.
 
- 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
 
	