catito14 0 Posted December 3, 2008 Hi, How can i do to create groups of units inside the CPP? I was searching in the configs of the example models of BI's's but I could not find anything. Thank you very much Regards Catito14 Share this post Link to post Share on other sites
dr_eyeball 16 Posted December 3, 2008 usmcd.pbo & ca.pbo have good examples in their config.bin (if this is what you mean) Here's part of it (one fire team): <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 = $STR_WEST;         class Infantry     {       name = $STR_CFG_XBOX_GRP_INFANTRY_SQUADS;             class USMCD_FireTeamBase       {         name = "USMC Fire Team";                 class Unit0         {           side = TWest;           vehicle = "USMCD_Soldier_TL";           rank = "Sergeant";           position[] = {0, 5, 0};         };                 class Unit1         {           side = TWest;           vehicle = "USMCD_Soldier_AR";           rank = "Corporal";           position[] = {3, 0, 0};         };                 class Unit2         {           side = TWest;           vehicle = "USMCD_Soldier_AT";           rank = "Corporal";           position[] = {5, 0, 0};         };                 class Unit3         {           side = TWest;           vehicle = "USMCD_Soldier_R";           rank = "Private";           position[] = {7, 0, 0};         };       };           };   }; }; Share this post Link to post Share on other sites
catito14 0 Posted December 3, 2008 Thanks, but...i can´t do it work.... i put the lines that you passed to me in the bottom of my units .cpp, then i change the "vehicle slot" in each unit of the group and i put the units created by me, but when i enter in the ArmA and i put the groups...there is only the standard groups and not the created by my. Which parts I need to keep like they are and which I need to change into the example that you gave to me? And those that I have to change, have I to define them before, at the begining of the .cpp? Thanks Regards Share this post Link to post Share on other sites
YO 0 Posted December 14, 2008 Hi there, I know it's an old post, so I suppose it's author does no longer need an explanation about declaring cfgGroups, but I've a question about that... I've seen first value given in 'position' is X-axis pos from leader pos, second is Y-axis pos, and I suspect the 3rd value given has something to do with units being on foot or as cargo in a vehicle... is it that way? coud someone tell me how does it works and how can I make some units start as cargo in a vehicle? thx for your time Share this post Link to post Share on other sites