Jump to content

Recommended Posts

Hi, I'm trying to make my own module.

I cannot understand  what "Sync", "Synced" parameters and "class Units: Units"do.

 

Thank you

 

class My_Module: Module_F
{	

	class Attributes: AttributesBase
		{
			// Arguments shared by specific module type (have to be mentioned in order to be present)
			class Units: Units
			{
				property = "myTag_ModuleNuke_Units";
			};
	};

	class ModuleDescription: ModuleDescription
          {
              description = "Short module description"; // Short description, will be formatted as structured text
              sync[] = {"LocationArea_F"}; // Array of synced entities (can contain base classes)

              class LocationArea_F
              {
                  description[] = { // Multi-line descriptions are supported
                      "First line",
                      "Second line"
                  };
                  position = 1; // Position is taken into effect
                  direction = 1; // Direction is taken into effect
                  optional = 1; // Synced entity is optional
                  duplicate = 1; // Multiple entities of this type can be synced
                  synced[] = {"BLUFORunit","AnyBrain"}; // Pre-define entities like "AnyBrain" can be used. See the list below
              };
};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×