Difference between revisions of "CfgPatches"

From Desolation REDUX Wiki
Jump to navigation Jump to search
(Created page with "The configfile should always start withthe definition ofCfgPatches. If you wantto use function of other Plugins, youcan use ‘requiredAddons[]‘ to define thedependencies. A...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The configfile should always start withthe definition ofCfgPatches. If you wantto use function of other Plugins, youcan use ‘requiredAddons[]‘ to define thedependencies. An example CfgPatcheslooks as following:
+
The configfile should always start with the definition of CfgPatches. If you want to use function of other Plugins, you can use ‘requiredAddons[]‘ to define the dependencies. An example CfgPatches looks as following:
  
<code java>
+
  class CfgPatches
class CfgPatches
+
  {  
{  
+
  class ExamplePluginName {
class ExamplePluginName {
+
      requiredAddons[] = {"Desolation"};
    requiredAddons[] = {"Desolation"};
+
      units[] = {};
    units[] = {};
+
  };
};
+
  };
};
 
</code java>
 
  
Note: theunits[] = {};is required to makethe Plugin Community Based Addons (CBA)compatible
+
Note: theunits[] = {};is required to make the Plugin Community Based Addons (CBA)compatible.

Latest revision as of 17:03, 20 March 2020

The configfile should always start with the definition of CfgPatches. If you want to use function of other Plugins, you can use ‘requiredAddons[]‘ to define the dependencies. An example CfgPatches looks as following:

 class CfgPatches
 { 
  class ExamplePluginName {
     requiredAddons[] = {"Desolation"};
     units[] = {};
  };
 };

Note: theunits[] = {};is required to make the Plugin Community Based Addons (CBA)compatible.