BIS fnc returnParents: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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 ")
m (Text replacement - " <!--- |exec= spawn --->" to "")
Line 24: Line 24:


| [[Array]] - List of all classes (including starting one)
| [[Array]] - List of all classes (including starting one)
<!---
|exec= spawn
--->


|x1= <code>[ [[configFile]] >> "CfgVehicles" >> "Land_FirePlace_F", [[true]] ] call [[BIS_fnc_returnParents]];
|x1= <code>[ [[configFile]] >> "CfgVehicles" >> "Land_FirePlace_F", [[true]] ] call [[BIS_fnc_returnParents]];

Revision as of 22:19, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Configs

Syntax

Syntax:
Syntax needed
Parameters:
config: Config - Starting config class
onlyClassNames: Boolean - (Optional, default false) true to return only class names
Return Value:
Return value needed

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