BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Configs |GROUP1= | |gr1= Configs |GROUP1= | ||
| Returns list of all parent classes. |Description= | | Returns list of all parent classes. |Description= | ||
| [config, onlyClassNames] call [[BIS_fnc_returnParents]] |Syntax= | | [config, onlyClassNames] call [[BIS_fnc_returnParents]] |Syntax= | ||
Line 25: | Line 22: | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
---> | ---> | ||
|x1= <code>[ [[configFile]] >> "CfgVehicles" >> "Land_FirePlace_F", [[true]] ] call [[BIS_fnc_returnParents]]; | |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>|Example 1= | //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</code>|Example 1= | ||
| [[configFile]], [[BIS_fnc_returnChildren]] |See also= | | [[configFile]], [[BIS_fnc_returnChildren]] |See also= |
Revision as of 23:50, 16 January 2021
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