BIS fnc returnChildren: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix boolean casing) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Configs |GROUP1= | |gr1= Configs |GROUP1= | ||
| Returns all subclasses within given class. |Description= | | Returns all subclasses within given class. |Description= | ||
| [config, depth, lastTier, firstTier]] call [[BIS_fnc_returnChildren]] |Syntax= | | [config, depth, lastTier, firstTier]] call [[BIS_fnc_returnChildren]] |Syntax= | ||
Line 27: | Line 24: | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
---> | ---> | ||
|x1= <code>[<nowiki/>[[configFile]] >> "CfgFunctions", 2] [[call]] [[BIS_fnc_returnChildren]]; {{cc|returns config paths of all functions}}</code> |Example 1= | |x1= <code>[<nowiki/>[[configFile]] >> "CfgFunctions", 2] [[call]] [[BIS_fnc_returnChildren]]; {{cc|returns config paths of all functions}}</code> |Example 1= | ||
| [[BIS_fnc_returnParents]] |See also= | | [[BIS_fnc_returnParents]] |See also= | ||
}} | }} |
Revision as of 23:48, 16 January 2021
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