BIS fnc returnChildren: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 | | | arma3 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns all subclasses within given class.|Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [config,depth,lastTier,firstTier]] call [[BIS_fnc_returnChildren]] |Syntax= | ||
| |= | |p1= config: [[Config]] - Class which is searched |Parameter 1= | ||
| | |p2= depth: [[Number]] - Depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on...|Parameter 2= | ||
| |= | |p3= lastTier: [[Boolean]] - (Optional, default [[false]]) [[True]] to return all classes, [[false]] to return only the last one |Parameter 3= | ||
|p4= firstTier: [[String]] - (Optional, default [[true]]) [[True]] to return the first class, [[false]] to return only the last one |Parameter 4= | |||
| [[Array]] - Classes |Return value= | |||
<!-- | <!--- | ||
|exec= spawn |= Execution | |||
---> | |||
____________________________________________________________________________________________ | |||
< | |x1= <code>[ [[configFile]] >> "CfgFunctions", 0, [[false]], [[false]] ] [[call]] [[BIS_fnc_returnChildren]];</code>|Example 1= | ||
[[ | ____________________________________________________________________________________________ | ||
[[ | |||
[[ | |||
| [[BIS_fnc_returnParents]] |See also= | |||
}} | |||
Revision as of 15:07, 15 June 2018
Description
- Description:
- Returns all subclasses within given class.
- Execution:
- call
- Groups:
- Uncategorised
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 false) True to return all classes, false to return only the last one
- firstTier: String - (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", 0, false, false ] call BIS_fnc_returnChildren;
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