BIS fnc returnChildren: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Configs |GROUP1=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *D([a-z])" to "$1 - d$2")
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Configs


|gr1= Configs |GROUP1=
|descr= Returns all subclasses within given class.
____________________________________________________________________________________________


| Returns all subclasses within given class.|Description=
|s1= [config, depth, lastTier, firstTier] call [[BIS_fnc_returnChildren]]
____________________________________________________________________________________________


| [config,depth,lastTier,firstTier]] call [[BIS_fnc_returnChildren]] |Syntax=
|p1= config: [[Config]] - class which is searched


|p2= depth: [[Number]] - depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on...


|p1= config: [[Config]] - Class which is searched |Parameter 1=
|p3= lastTier: [[Boolean]] - (Optional, default [[true]]) [[false]] to return only the last one, [[true]] to return all classes


|p2= depth: [[Number]] - Depth, (0 = return only subclasses, 1 = return subclasses of subclasses, and so on...|Parameter 2=
|p4= firstTier: [[Boolean]] - (Optional, default [[true]]) [[true]] to return the first class, [[false]] to return only the last one


|p3= lastTier: [[Boolean]] - (Optional, default [[true]]) [[False]] to return only the last one, [[true]] to return all classes |Parameter 3=
|r1= [[Array]] - classes


|p4= firstTier: [[Boolean]] - (Optional, default [[true]]) [[True]] to return the first class, [[false]] to return only the last one |Parameter 4=
|x1= <sqf>[configFile >> "CfgFunctions", 2] call BIS_fnc_returnChildren; // returns config paths of all functions</sqf>


| [[Array]] - Classes |Return value=
|seealso= [[BIS_fnc_returnParents]]
 
<!---
|exec= spawn |Execution=
--->
____________________________________________________________________________________________
 
|x1= <code>[ [[configFile]] >> "CfgFunctions", 2 ] [[call]] [[BIS_fnc_returnChildren]];//Return config paths of all functions</code>|Example 1=
____________________________________________________________________________________________
 
| [[BIS_fnc_returnParents]] |See also=
}}
}}
[[Category:Function Group: Configs|{{uc:returnChildren}}]]

Latest revision as of 14:01, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns all subclasses within given class.
Execution:
call
Groups:
Configs

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