BIS fnc getCfgSubClasses: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 40: | Line 40: | ||
|r1= | |r1= | ||
|x1= <code>private _allVehHitPoints = (configfile >> "CfgVehicles" >> "C_Hatchback_01_sport_F" >> "HitPoints") | |x1= <code>private _allVehHitPoints = (configfile >> "CfgVehicles" >> "C_Hatchback_01_sport_F" >> "HitPoints") call [[BIS_fnc_getCfgSubClasses]];</code> | ||
|seealso= | |seealso= | ||
}} | }} |
Revision as of 21:36, 12 July 2022
Description
- Description:
/* Description: Return all child classes of given class. Remark(s): * Can by called 2 ways: * 1st way (general) works for any config. * 2nd way is for comfortable working with mission description.ext. Parameter(s): _this: CFG _this: ARRAY of STRINGS - missionConfigFile classes and an attribute. Example: * 1st way of calling: _subclasses = (missionconfigfile >> "Hubs" >> "A1" >> "QuickStart") call Bis_fnc_getCfgSubClasses; * 2nd way of calling: _subclasses = ["Hubs"] call Bis_fnc_getCfgSubClasses; Returns: ARRAY (of STRINGS with sub-classes names) */
- Execution:
- call
- Groups:
- Configs
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
private _allVehHitPoints = (configfile >> "CfgVehicles" >> "C_Hatchback_01_sport_F" >> "HitPoints") call BIS_fnc_getCfgSubClasses;
Additional Information
- See also:
- See also needed
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