Jump to content
Sign in to follow this  
bull_a

Return all classes that inherit from a parent class

Recommended Posts

Is there a way to return a list of CONFIG classes that inherit from a given CONFIG class.

Eg. Return all classes that inherit from (configFile >> "CfgVehicles" >> "Car")

Kind Regards,

Bull

Share this post


Link to post
Share on other sites

{diag_log format ["%1", _x];} forEach ("configName _x isKindOf 'Car'" configClasses (configFile / "CfgVehicles"))

configs

or

{diag_log format ["%1", configName _x];} forEach ("configName _x isKindOf 'Car'" configClasses (configFile / "CfgVehicles"))

classes

Edited by Das Attorney

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×