BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 25: | Line 25: | ||
|r1= [[Array]] - List of all classes (including starting one) | |r1= [[Array]] - List of all classes (including starting one) | ||
|x1= <code>[ configFile >> "CfgVehicles" >> "Land_FirePlace_F", | |x1= <code>[ configFile >> "CfgVehicles" >> "Land_FirePlace_F", true ] call [[BIS_fnc_returnParents]]; | ||
//Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</code> | //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</code> | ||
|seealso= [[configFile]] [[BIS_fnc_returnChildren]] | |seealso= [[configFile]] [[BIS_fnc_returnChildren]] | ||
}} | }} |
Revision as of 21:38, 12 July 2022
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