daanvs 0 Posted July 2, 2007 I searched but couldn't find it.. I want to make a group consisting of my custom made units. a Group as in a group you can select in the editor. Where and how do I define this? is it done in the config.cpp? Could someone give me an example? thanks Share this post Link to post Share on other sites
W0lle 1052 Posted July 2, 2007 You define them in the config.cpp, the section is called CfgGroups. See the example below: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgGroups { class West { name="BLUFOR"; class Infantry { name="Infantry"; class BasicInfantry { name="InfantrySquad"; class Unit0{side=1;vehicle="SquadLeaderW";rank="SERGEANT";position[]={0,5,0};}; class Unit1{side=1;vehicle="SoldierWG";rank="CORPORAL";position[]={3,0,0};}; class Unit2{side=1;vehicle="SoldierWAR";rank="CORPORAL";position[]={5,0,0};}; class Unit3{side=1;vehicle="SoldierWAT";rank="CORPORAL";position[]={7,0,0};}; class Unit4{side=1;vehicle="SoldierWG";rank="CORPORAL";position[]={9,0,0};}; class Unit5{side=1;vehicle="SoldierWAR";rank="CORPORAL";position[]={11,0,0};}; class Unit6{side=1;vehicle="SoldierWAT";rank="CORPORAL";position[]={13,0,0};}; class Unit7{side=1;vehicle="SoldierWB";rank="CORPORAL";position[]={15,0,0};}; class Unit8{side=1;vehicle="SoldierWB";rank="CORPORAL";position[]={17,0,0};}; class Unit9{side=1;vehicle="SoldierWB";rank="CORPORAL";position[]={19,0,0};}; }; }; }; }; Share this post Link to post Share on other sites
daanvs 0 Posted July 2, 2007 Thanks, but what does the "position" part define? EDIT: Nevermind, I figured it out. Thanks again! Share this post Link to post Share on other sites