grad fortifications - gruppe-adler/grad-persistence GitHub Wiki

grad-persistence has limited support for grad-fortifications objects.

To save grad-fortifications placed objects, use saveGradFortificationsStatics = 3 (see saving objects page for more).
When loading grad-fortifications objects, fortificationOwnerType is restored for type "BUILDER" and "SIDE". Type "GROUP" is lost however.

If you want to save grad-fortifications' virtual inventory, you need to add this as custom variables to your grad-persistence config like so:

class CfgGradPersistence {

  // [...]

  class customVariables {
      class gradFortificationsVehicleInventory {
          varName = "grad_fortifications_myFortsHash";
          varNamespace = "vehicle";
          public = 1;
      };
      class gradFortificationsContainerInventory {
          varName = "grad_fortifications_myFortsHash";
          varNamespace = "container";
          public = 1;
      };
      class gradFortificationsPlayerInventory {
          varName = "grad_fortifications_myFortsHash";
          varNamespace = "player";
          public = 1;
      };
      class gradFortificationsUnitInventory {
          varName = "grad_fortifications_myFortsHash";
          varNamespace = "unit";
          public = 1;
      };
  };
};