PFC_Mike 2 Posted October 13, 2002 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 Share this post Link to post Share on other sites
-A-V-Trekkie 0 Posted October 13, 2002 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