configHierarchy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(version 1.48)
m (only classes are supported)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns hierarchy of the given config. |= Description
| Returns hierarchy of the given config class. Just like with [[inheritsFrom]], only complete config classes are supported |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''configHierarchy''' config |= Syntax
| '''configHierarchy''' configClass |= Syntax
|p1= config: [[Config]] - target config|=
|p1= configClass: [[Config]] - target config class|=
| [[Array]] - array of parent configs |= Return value
| [[Array]] - array of parent configs |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 18:01, 6 January 2016

Hover & click on the images for description

Description

Description:
Returns hierarchy of the given config class. Just like with inheritsFrom, only complete config classes are supported
Groups:
Uncategorised

Syntax

Syntax:
configHierarchy configClass
Parameters:
configClass: Config - target config class
Return Value:
Array - array of parent configs

Examples

Example 1:
_hierarchy = configHierarchy (configFile >> "CfgVehicles" >> "Car"); //[bin\config.bin,bin\config.bin/CfgVehicles,bin\config.bin/CfgVehicles/Car]

Additional Information

See also:
configClassesconfigPropertiesmissionConfigFilecampaignConfigFileconfig/nameconfig >> nameconfigNamecountgetArraygetTextgetNumberinheritsFromisArrayisClassisNumberisTextselectisKindOf

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