Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.40

Description

Description:Returns the CfgPatches class, from which a given configuration entry was created.

Syntax

Syntax:cfgPatch class
Parameters:
  • class: Config-2 - Configuration entry to search.
Return Value:String - CfgPatches class (empty string, if undefined).

Examples

Examples:
_patch = cfgPatch (configFile >> "CfgVehicles" >> "vbs2_car");
// Returns "vbs2_vehicles_land_wheeled" 
_patch = cfgPatch (configFile >> "CfgWeapons" >> "m4");
// Returns "caweapons" 

Additional Information

See also: getAddonLocation, fn vbs getContentModules
Multiplayer:
Problems:Non-functional for versions 1.64 to 2.04.

Notes





This will currently
not
work:


_cfg = configFile >> "CfgVehicles" >> "vbs2_tank";
hint CfgPatch _cfg;

Even though it does with a class that is 2-deep, e.g.

_cfg = configFile >> "CfgVehicles" >> "tank" >> "turrets";
hint CfgPatch _cfg;

Kronzky 12:54, 12 August 2010 (PDT)