inheritsFrom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (note format)
(see also)
Line 18: Line 18:
|x1 = <code>_base = [[inheritsFrom]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Car");</code> Result is "LandVehicle" |= Example 1
|x1 = <code>_base = [[inheritsFrom]] ([[configFile]] [[gtgt|>>]] "CfgVehicles" [[gtgt|>>]] "Car");</code> Result is "LandVehicle" |= Example 1


| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]] |= See also
| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[isArray]], [[isClass]], [[isNumber]], [[isText]], [[select]], [[configHierarchy]] |= See also


}}
}}

Revision as of 16:47, 23 June 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns base entry of config entry.
Groups:
Uncategorised

Syntax

Syntax:
Config = inheritsFrom config
Parameters:
config: Config
Return Value:
Config

Examples

Example 1:
_base = inheritsFrom (configFile >> "CfgVehicles" >> "Car"); Result is "LandVehicle"

Additional Information

See also:
configFileconfig/nameconfigNamecountgetArraygetTextgetNumberisArrayisClassisNumberisTextselectconfigHierarchy

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

Bottom Section