BIS fnc returnChildren: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *D([a-z])" to "$1 - d$2") |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
|s1= [config, depth, lastTier, firstTier] call [[BIS_fnc_returnChildren]] | |s1= [config, depth, lastTier, firstTier] call [[BIS_fnc_returnChildren]] | ||
|p1= config: [[Config]] - | |p1= config: [[Config]] - class which is searched | ||
|p2= depth: [[Number]] - | |p2= depth: [[Number]] - depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on... | ||
|p3= lastTier: [[Boolean]] - (Optional, default [[true]]) [[false]] to return only the last one, [[true]] to return all classes | |p3= lastTier: [[Boolean]] - (Optional, default [[true]]) [[false]] to return only the last one, [[true]] to return all classes | ||
Line 18: | Line 18: | ||
|p4= firstTier: [[Boolean]] - (Optional, default [[true]]) [[true]] to return the first class, [[false]] to return only the last one | |p4= firstTier: [[Boolean]] - (Optional, default [[true]]) [[true]] to return the first class, [[false]] to return only the last one | ||
|r1= [[Array]] - | |r1= [[Array]] - classes | ||
|x1= <sqf>[configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions</sqf> | |x1= <sqf>[configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions</sqf> |
Latest revision as of 14:01, 8 November 2023
Description
Syntax
- Syntax:
- [config, depth, lastTier, firstTier] call BIS_fnc_returnChildren
- Parameters:
- config: Config - class which is searched
- depth: Number - depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on...
- lastTier: Boolean - (Optional, default true) false to return only the last one, true to return all classes
- firstTier: Boolean - (Optional, default true) true to return the first class, false to return only the last one
- Return Value:
- Array - classes
Examples
- Example 1:
- [configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions
Additional Information
- See also:
- BIS_fnc_returnParents
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