inheritsFrom: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
No edit summary |
||
Line 26: | Line 26: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on Apr 2, 2014 - 17:11 | |||
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note"> | |||
In ArmA3 ver 1.14, it is recommended to use [[BIS_fnc_returnParents]] if a parents’ collection of the given attribute is needed. E.g. | |||
<code> | |||
[(configfile >> "CfgVehicles" >> "Land_Atm_02_F"),true] call BIS_fnc_returnParents | |||
//return: ["Land_Atm_02_F","House_Small_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"] | |||
</code> | |||
Not all attributes have parent, and please differ parents from path. e.g. | |||
<code> | |||
Inheritsfrom (configfile >> "CfgUIColors" >> "IGUI" >> "Presets" >> "PresetA1" >> "Variables"); | |||
//return: Nothing | |||
</code> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 10:11, 2 April 2014
Description
- Description:
- Returns base entry of config entry.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_base = inheritsFrom (configFile >> "CfgVehicles" >> "Car")
Result is LandVehicle
Additional Information
- See also:
- configFileconfig/nameconfigNamecountgetArraygetTextgetNumberisArrayisClassisNumberisTextselect
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
- Posted on Apr 2, 2014 - 17:11
- ffur2007slx2_5
-
In ArmA3 ver 1.14, it is recommended to use BIS_fnc_returnParents if a parents’ collection of the given attribute is needed. E.g.
[(configfile >> "CfgVehicles" >> "Land_Atm_02_F"),true] call BIS_fnc_returnParents //return: ["Land_Atm_02_F","House_Small_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]
Not all attributes have parent, and please differ parents from path. e.g.Inheritsfrom (configfile >> "CfgUIColors" >> "IGUI" >> "Presets" >> "PresetA1" >> "Variables"); //return: Nothing