BIS fnc returnChildren: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
Killzone Kid (talk | contribs) No edit summary |
||
(18 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Configs | |gr1= Configs | ||
| Returns all subclasses within given class. | |descr= Returns all subclasses within given class. | ||
| | |s1= [config, depth, lastTier] call [[BIS_fnc_returnChildren]] | ||
| | |p1= config: [[Config]] - class which is searched | ||
| | |p2= depth: [[Number]] - (Optional, default 0) depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on... | ||
| [[ | |p3= allTiers: [[Boolean]] - (Optional, default [[true]]) [[false]] to return only the last one, [[true]] to return all | ||
|r1= [[Array]] - of [[Config]]s | |||
| | |||
|x1= < | |x1= <sqf>[configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions</sqf> | ||
| [[BIS_fnc_returnParents]] | |seealso= [[BIS_fnc_returnParents]] [[configClasses]] | ||
}} | }} |
Latest revision as of 01:07, 12 October 2025
Description
Syntax
- Syntax:
- [config, depth, lastTier] call BIS_fnc_returnChildren
- Parameters:
- config: Config - class which is searched
- depth: Number - (Optional, default 0) depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on...
- allTiers: Boolean - (Optional, default true) false to return only the last one, true to return all
- Return Value:
- Array - of Configs
Examples
- Example 1:
- [configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions
Additional Information
- See also:
- BIS_fnc_returnParents configClasses
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