BIS fnc returnParents: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Configs |GROUP1=")
m (Text replacement - "\[\[Category\:Function Group\: Configs(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 41: Line 41:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Configs|{{uc:returnParents}}]]
 
[[Category:Functions|{{uc:returnParents}}]]
[[Category:Functions|{{uc:returnParents}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:returnParents}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:returnParents}}]]

Revision as of 10:18, 12 October 2020

Hover & click on the images for description

Description

Description:
Returns list of all parent classes.
Execution:
call
Groups:
Configs

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

Notes

Bottom Section