BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Configs(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) |
||
Line 17: | Line 17: | ||
|p1= config: [[Config]] - Starting config class |Parameter 1= | |p1= config: [[Config]] - Starting config class |Parameter 1= | ||
|p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[ | |p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[true]] to return only class names|Parameter 2= | ||
Revision as of 17:07, 26 December 2020
Description
Syntax
- Syntax:
- [config, onlyClassNames] call BIS_fnc_returnParents
- Parameters:
- config: Config - Starting config class
- onlyClassNames: Boolean - (Optional, default false) true to return only class names
- Return Value:
- Array - List of all classes (including starting one)
Examples
- Example 1:
[ configFile >> "CfgVehicles" >> "Land_FirePlace_F", true ] call BIS_fnc_returnParents; //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]
Additional Information
- See also:
- configFileBIS_fnc_returnChildren
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