BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| arma2 \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ") |
Lou Montana (talk | contribs) m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2") |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Configs | |gr1= Configs | ||
| Returns list of all parent classes. | |descr= Returns list of all parent classes. | ||
| [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 | ||
| [[Array]] - | |r1= [[Array]] - list of all classes (including starting one) | ||
|x1= <sqf>[configFile >> "CfgVehicles" >> "Land_FirePlace_F", true] call BIS_fnc_returnParents; | |||
| | //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</sqf> | ||
|seealso= [[configFile]] [[BIS_fnc_returnChildren]] | |||
|seealso= [[configFile]] | |||
}} | }} | ||
Latest revision as of 17:27, 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