BIS fnc returnParents: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 17: Line 17:
| Returns list of all parent classes.
| Returns list of all parent classes.


| [config, onlyClassNames] call [[BIS_fnc_returnParents]]
|s1=[config, onlyClassNames] call [[BIS_fnc_returnParents]]


|p1= config: [[Config]] - Starting config class
|p1= config: [[Config]] - Starting config class

Revision as of 16:58, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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