BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *L([a-z ])" to "$1 - l$2") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2") |
||
Line 19: | Line 19: | ||
|s1= [config, onlyClassNames] call [[BIS_fnc_returnParents]] | |s1= [config, onlyClassNames] call [[BIS_fnc_returnParents]] | ||
|p1= config: [[Config]] - | |p1= config: [[Config]] - starting config class | ||
|p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[true]] to return only class names | |p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[true]] to return only class names |
Revision as of 15:49, 8 November 2023
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:
- configFile BIS_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