Results 1 to 4 of 4

Thread: Join group and split/unjoin group help - A High Command Idea

  1. #1

    Join group and split/unjoin group help - A High Command Idea

    Hi, I got this crazy idea with high command, as a platoon leader and have 3 squads.

    So, the idea goes like this, if I want to go for a long foot patrol, I use radio trigger and have all of the squads to join my group, using 'join' command.

    Then, when combat erupts, I want to split them back to their respective group so I can control them with High Command. But how do I split/unjoin them?

    Any help is appreciated
    Last edited by Mr_Centipede; Jul 8 2009 at 09:02.

  2. #2
    Sergeant Major
    Join Date
    Mar 27 2007
    Location
    Key El
    Posts
    1,559
    Author of the Thread
    shameless *bump*

    is it possible? i have manage to make them join the player, now I am figuring how to make the groups detach itself from the player

  3. #3
    Sergeant Major
    Join Date
    Mar 27 2007
    Location
    Key El
    Posts
    1,559
    Author of the Thread
    EUREKA!!!

    I think I got it... needs some more test

    basically this what I did, in mission.sqm file form
    Code:
    version=11;
    class Mission
    {
    	addOns[]=
    	{
    		"cacharacters2",
    		"utes",
    		"ca_highcommand"
    	};
    	addOnsAuto[]=
    	{
    		"cacharacters2",
    		"ca_highcommand",
    		"utes"
    	};
    	randomSeed=12973976;
    	class Intel
    	{
    		startWeather=0.40000001;
    		forecastWeather=0.25;
    		year=2008;
    		month=10;
    		day=11;
    		hour=14;
    		minute=20;
    	};
    	class Groups
    	{
    		items=6;
    		class Item0
    		{
    			side="WEST";
    			class Vehicles
    			{
    				items=1;
    				class Item0
    				{
    					position[]={3488.4509,19,3604.5562};
    					id=0;
    					side="WEST";
    					vehicle="USMC_Soldier_SL";
    					player="PLAYER COMMANDER";
    					leader=1;
    					rank="SERGEANT";
    					skill=0.60000002;
    					text="nazran";
    					init="player hcSetGroup [(group player)];";
    					synchronizations[]={13};
    				};
    			};
    		};
    		class Item1
    		{
    			side="WEST";
    			class Vehicles
    			{
    				items=4;
    				class Item0
    				{
    					position[]={3431.4285,19,3595.2856};
    					id=1;
    					side="WEST";
    					vehicle="USMC_Soldier_TL";
    					leader=1;
    					rank="SERGEANT";
    					skill=0.46666664;
    					text="ldr1";
    					init="grp1=group this; grp1_1=units (group this);";
    					synchronizations[]={14};
    				};
    				class Item1
    				{
    					position[]={3434.4285,19,3590.2856};
    					id=2;
    					side="WEST";
    					vehicle="USMC_Soldier_AR";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item2
    				{
    					position[]={3436.4285,19,3590.2856};
    					id=3;
    					side="WEST";
    					vehicle="USMC_Soldier_LAT";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item3
    				{
    					position[]={3438.4285,19,3590.2856};
    					id=4;
    					side="WEST";
    					vehicle="USMC_Soldier";
    					skill=0.2;
    				};
    			};
    		};
    		class Item2
    		{
    			side="WEST";
    			class Vehicles
    			{
    				items=4;
    				class Item0
    				{
    					position[]={3546.8574,19,3595.2856};
    					id=5;
    					side="WEST";
    					vehicle="USMC_Soldier_TL";
    					leader=1;
    					rank="SERGEANT";
    					skill=0.46666664;
    					text="ldr3";
    					init="grp3=group this; grp3_1=units (group this);";
    					synchronizations[]={14};
    				};
    				class Item1
    				{
    					position[]={3549.8574,19,3590.2856};
    					id=6;
    					side="WEST";
    					vehicle="USMC_Soldier_MG";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item2
    				{
    					position[]={3551.8574,19,3590.2856};
    					id=7;
    					side="WEST";
    					vehicle="USMC_Soldier_AR";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item3
    				{
    					position[]={3553.8574,19,3590.2856};
    					id=8;
    					side="WEST";
    					vehicle="USMC_Soldier_LAT";
    					skill=0.2;
    				};
    			};
    		};
    		class Item3
    		{
    			side="WEST";
    			class Vehicles
    			{
    				items=4;
    				class Item0
    				{
    					position[]={3487.5552,19,3591.0225};
    					id=9;
    					side="WEST";
    					vehicle="USMC_Soldier_TL";
    					leader=1;
    					rank="SERGEANT";
    					skill=0.46666664;
    					text="ldr2";
    					init="grp2=group this; grp2_1=units (group this);";
    					synchronizations[]={14};
    				};
    				class Item1
    				{
    					position[]={3490.5552,19,3586.0225};
    					id=10;
    					side="WEST";
    					vehicle="USMC_Soldier_AR";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item2
    				{
    					position[]={3492.5552,19,3586.0225};
    					id=11;
    					side="WEST";
    					vehicle="USMC_Soldier_LAT";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    				class Item3
    				{
    					position[]={3494.5552,19,3586.0225};
    					id=12;
    					side="WEST";
    					vehicle="USMC_Soldier_Medic";
    					rank="CORPORAL";
    					skill=0.33333331;
    				};
    			};
    		};
    		class Item4
    		{
    			side="LOGIC";
    			class Vehicles
    			{
    				items=1;
    				class Item0
    				{
    					position[]={3492.4827,18.957268,3564.2727};
    					id=14;
    					side="LOGIC";
    					vehicle="HighCommandSubordinate";
    					leader=1;
    					skill=0.60000002;
    					synchronizations[]={13,1,9,5};
    				};
    			};
    		};
    		class Item5
    		{
    			side="LOGIC";
    			class Vehicles
    			{
    				items=1;
    				class Item0
    				{
    					position[]={3496.4258,19,3620.0635};
    					id=13;
    					side="LOGIC";
    					vehicle="HighCommand";
    					leader=1;
    					skill=0.60000002;
    					synchronizations[]={14,0};
    				};
    			};
    		};
    	};
    	class Sensors
    	{
    		items=3;
    		class Item0
    		{
    			position[]={3420.0884,18.995382,3640.4617};
    			a=0;
    			b=0;
    			activationBy="ALPHA";
    			interruptable=1;
    			age="UNKNOWN";
    			expActiv="units grp1 join player; units grp2 join player; units grp3 join player;";
    			class Effects
    			{
    			};
    		};
    		class Item1
    		{
    			position[]={3466.8198,18.933168,3646.6824};
    			a=0;
    			b=0;
    			activationBy="BRAVO";
    			interruptable=1;
    			age="UNKNOWN";
    			expActiv="grp1_1 join grp1; grp1=group (grp1_1 select 0); player hcSetGroup [grp1]; grp2_1 join grp2; grp2=group (grp2_1 select 0); player hcSetGroup [grp2]; grp3_1 join grp3; grp3=group (grp3_1 select 0); player hcSetGroup [grp3]; ";
    			class Effects
    			{
    			};
    		};
    		class Item2
    		{
    			position[]={3448.4128,18.984905,3641.5093};
    			a=0;
    			b=0;
    			activationBy="CHARLIE";
    			repeating=1;
    			interruptable=1;
    			age="UNKNOWN";
    			expActiv="hint format[""%1 ; %2"",leader grp1,grp1_1]";
    			class Effects
    			{
    			};
    		};
    	};
    };
    class Intro
    {
    	addOns[]=
    	{
    		"utes"
    	};
    	addOnsAuto[]=
    	{
    		"utes"
    	};
    	randomSeed=10440565;
    	class Intel
    	{
    		startWeather=0.40000001;
    		forecastWeather=0.25;
    		year=2008;
    		month=10;
    		day=11;
    		hour=14;
    		minute=20;
    	};
    };
    class OutroWin
    {
    	addOns[]=
    	{
    		"utes"
    	};
    	addOnsAuto[]=
    	{
    		"utes"
    	};
    	randomSeed=5400759;
    	class Intel
    	{
    		startWeather=0.40000001;
    		forecastWeather=0.25;
    		year=2008;
    		month=10;
    		day=11;
    		hour=14;
    		minute=20;
    	};
    };
    class OutroLoose
    {
    	addOns[]=
    	{
    		"utes"
    	};
    	addOnsAuto[]=
    	{
    		"utes"
    	};
    	randomSeed=10261693;
    	class Intel
    	{
    		startWeather=0.40000001;
    		forecastWeather=0.25;
    		year=2008;
    		month=10;
    		day=11;
    		hour=14;
    		minute=20;
    	};
    };
    I just need to figure out the radio activation - how to create them dynamically then maybe put in external script
    Last edited by Mr_Centipede; Jul 8 2009 at 13:44.

  4. #4
    Sergeant Major
    Join Date
    Mar 27 2007
    Location
    Key El
    Posts
    1,559
    Author of the Thread
    I made a demo mission and posted it in ARMA 2 - USER MISSION forum if you guys interested:
    http://forums.bistudio.com/showthread.php?t=79333

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •