Jump to content
rosb

Need help adding a map marker to an already existing addon!

Recommended Posts

Hi.

 

I'm relatively new to modding Arma 3 and using C++, and I would like to know how to add a script to an existing code block. To illustrate this I will provide an example of what I have already done and what I would like to add.

 

What I have already done:

class CfgPatches {

 class insignia_addon
 {
  units[] = {};
  weapons[] = {};
  requiredAddons[] = {};
  version = "1.0.0";
  author[] = {author};
  authorUrl = "url";
  };
};

class CfgUnitInsignia
{
 
 class patch1
 {
  displayName = "name";
  author = "author";
  texture = "texture";
  textureVehicle = "";
 };

class patch2
{
 displayName = "name";
 author = "author";
 texture = "texture";
 textureVehicle = "";
};

class patch3
{
 displayName = "name";
 author = "author";
 texture = "texture";
 textureVehicle = "";
};

class patch4
{
 displayName = "name";
 author = "author";
 texture = "texture";
 textureVehicle = "";
};

class patch5
{
 displayName = "name";
 author = "author";
 texture = "texture";
 textureVehicle = "";
};

class patch6
{
 displayName = "name";
 author = "author";
 texture = "texture";
 textureVehicle = "";
};

};

 

What I would like to add is the following code I found on Arma Dev reddit, which is seven years old. I don't know if it works so if someone could tell me if it still does that would be very appreciated.
Here it is:

 

class CfgPatches

{

class Markers

{

units[] = {};

weapons[] = {};

requiredVersion=1.00;

};

};

class CfgMarkers

{

class flag1

{

name="name";

icon="texture";

color[]={1,1,1,1};

size=32;

shadow = 0;

scope = 2;

markerClass = "Flags";

};

class flag2

{

name="name";

icon="texture";

color[]={1,1,1,1};

size=32;

shadow = 0;

scope = 2;

markerClass = "Flags";

};

};

 

I do not know where to go from where I currently am or where to insert the code. I do not know how to make a separate code block in C++ for the flags. If anyone could help me, I would really appreciate it!

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

×