inheritsFrom: Difference between revisions
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) m (<code> tidy) |
m (note format) |
||
Line 27: | Line 27: | ||
<dd class="notedate">Posted on Apr 2, 2014 - 17:11 | <dd class="notedate">Posted on Apr 2, 2014 - 17:11 | ||
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note"> | <dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note"> | ||
(A3 1.14)Use [[BIS_fnc_returnParents]] if a parents' collection of the given entry is needed. | |||
<code> | <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"] | //return: ["Land_Atm_02_F","House_Small_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"] | ||
</code> | </code> | ||
Not all entries have parent, and please differ parents from path | Not all entries have parent, and please differ parents from path. | ||
<code> | <code> | ||
[[inheritsFrom]] ([[configFile]] >> "CfgUIColors" >> "IGUI" >> "Presets" >> "PresetA1" >> "Variables"); | |||
//return: Nothing | //return: Nothing | ||
</code> | </code> |
Revision as of 15:56, 30 August 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
-
(A3 1.14)Use BIS_fnc_returnParents if a parents' collection of the given entry is needed.
[(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 entries have parent, and please differ parents from path.inheritsFrom (configFile >> "CfgUIColors" >> "IGUI" >> "Presets" >> "PresetA1" >> "Variables"); //return: Nothing