Jump to content
Sign in to follow this  
PFC_Mike

How do i make new groups?

Recommended Posts

how do I edit a .cpp to make new units? SnYpir's tutorial on OFPEC isn't aimed at units, lots of stuff on ingeritance and defines

I'm having fun with ,cpp, my marines have M4's and M240's.

none of the m16/m60 crap biggrin.gifbiggrin.gifbiggrin.gif

Share this post


Link to post
Share on other sites

class CfgGroups

{

class West // Side

{

name="$STR_WEST"; // Name of Side

class Armored // Class (Armored or Infantry)

{

name="$STR_CFG_GRP_ARMORED"; // Name of Class

class M1Platoon // Group

{

name="$STR_CFG_GRP_M1PLATOON"; // Name of Group

class Unit0 // first Unit

{

side=1;

vehicle="M1Abrams"; // Which Unit?

rank="CAPTAIN"; // Rank?

position[]={0,5,0}; // Position in Group

};

class Unit1

{

side=1;

vehicle="M1Abrams";

rank="Lieutnant";

position[]={-20,0,0};

};

class Unit2

{

side=1;

vehicle="M1Abrams";

rank="Lieutnant";

position[]={20,0,0};

};

class Unit3

{

side=1;

vehicle="M1Abrams";

rank="Corporal";

position[]={40,0,0};

};

};

};

};

};

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
Sign in to follow this  

×