Jump to content
matkob

How to make AI continue waypoints after joining and leaving group?

Recommended Posts

I have a mission where I insert some teams by helicopters. After take off I used trigger with "join" command so they fly in formation. However, at the release point after using trigger with "join grpnull" they only hover and do not proceed to their next waypoint created in editor. Any way to fix this?

Thanks in advance

Share this post


Link to post
Share on other sites

Waypoints are assigned to the group, so when they leave that group they no longer have waypoints. Either give them another waypoint by script using addWaypoint, or place a unit with an init line like this

myheliwaypoint = group this; deleteVehicle this;

...and give the unit a waypoint to where you want the choppers to go. Then after the choppers have left the group, do this for eeach one:

group choppername [url="http://community.bistudio.com/wiki/copyWaypoints"]copyWaypoints[/url] myheliwaypoint

Share this post


Link to post
Share on other sites

Small progress: they go to the position of the deleted units but they do not follow the waypoints (do not unload troops and fly away)...

Share this post


Link to post
Share on other sites

Try this, instead of deleting the unit hide him.

myheliwaypoint = group this; this setdamage 1;this hideobject true

I used it in the past and it worked ok.

Share this post


Link to post
Share on other sites

Not working for me :(

This is what I have in trigger grouped with prince1 helicopter (group leader):

[prince2, prince3, prince4] join grpNull; group prince2 copyWaypoints h2; group prince3 copyWaypoints h3; group prince4 copyWaypoints h4;

And this is what I put in those hidden helos:

h2 = group this; this setdamage 1; this hideobject true;

for each h2 to h4 respectively

Crashsites appear with fires there and the result is the same as it used to be. Tried it without setdamage but still not working.

Share this post


Link to post
Share on other sites

Odd I haven't tested in A3 but works fine in A2/OA, I only had to use the first unit prince2 and all the other assigned to grpnull followed without being set.

instead of using a trigger try placing the code in a waypoint, triggers need to be quite large for aircraft and can be missed.

I'll try and test later in A3.

Share this post


Link to post
Share on other sites

Here is my mission.sqm (still with delet vehicle):

version=12;
class Mission
{
addOns[]=
{
	"A3_Air_F_Heli_Light_01",
	"A3_Air_F_Beta_Heli_Transport_01",
	"a3_map_stratis",
	"A3_Characters_F_BLUFOR",
	"a3_characters_f_beta",
	"A3_Structures_F_Mil_Helipads",
	"A3_Characters_F_Civil"
};
addOnsAuto[]=
{
	"A3_Air_F_Heli_Light_01",
	"A3_Air_F_Beta_Heli_Transport_01",
	"A3_Characters_F_BLUFOR",
	"a3_characters_f_beta",
	"A3_Characters_F_Civil",
	"A3_Structures_F_Mil_Helipads",
	"a3_map_stratis"
};
randomSeed=4776157;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=7;
	day=6;
	hour=14;
	minute=15;
	startFogBase=0.001;
	forecastFogBase=0.001;
	startFogDecay=0.0049999999;
	forecastFogDecay=0.0049999999;
};
class Groups
{
	items=15;
	class Item0
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1688.996,5.5,5565.7734};
				azimut=104.576;
				id=0;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				text="Prince1";
			};
		};
		class Waypoints
		{
			items=10;
			class Item0
			{
				position[]={1640.6409,5.5,5238.9131};
				formation="FILE";
				speed="LIMITED";
				combat="AWARE";
				expActiv="prince1 flyinheight 30; prince2 flyinheight 30; prince3 flyinheight 30; prince4 flyinheight 30;";
				class Effects
				{
				};
				timeoutMin=25;
				timeoutMid=25;
				timeoutMax=25;
				showWP="NEVER";
			};
			class Item1
			{
				position[]={2029.5592,-6.338738,4789.8979};
				idStatic=143940;
				idObject=-1834878396;
				speed="FULL";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={2944.0022,52.633343,4671.3633};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item3
			{
				position[]={3905.2139,201.59073,4650.8726};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item4
			{
				position[]={4489.6836,200.69899,4382.2534};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item5
			{
				position[]={5073.5596,94.47406,3822.3486};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item6
			{
				position[]={4399.0308,-25.679657,2267.0303};
				idStatic=113628;
				idObject=-2000401444;
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item7
			{
				position[]={4268.6147,-0.3747789,2184.9409};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item8
			{
				position[]={3356.126,151.33086,2348.2817};
				type="TR UNLOAD";
				synchronizations[]={1};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=0;
			};
			class Item9
			{
				position[]={2554.894,134.96033,2472.9009};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item1
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1693.1802,5.5,5580.5278};
				azimut=105.03;
				id=1;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				text="Prince2";
			};
		};
	};
	class Item2
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1696.674,5.5,5594.7456};
				azimut=108.959;
				id=2;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				text="Prince3";
			};
		};
	};
	class Item3
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1700.4536,5.5,5608.6992};
				azimut=104.485;
				id=3;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				text="Prince4";
			};
		};
	};
	class Item4
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1665.1053,5.5,5516.0239};
				azimut=104.485;
				id=4;
				side="WEST";
				vehicle="B_Heli_Transport_01_F";
				leader=1;
				skill=0.60000002;
				text="Chalk1";
			};
		};
	};
	class Item5
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1657.302,5.5,5486.9995};
				azimut=104.485;
				id=5;
				side="WEST";
				vehicle="B_Heli_Transport_01_F";
				leader=1;
				skill=0.60000002;
				text="Chalk2";
			};
		};
	};
	class Item6
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={1691.5087,5.5,5632.6958};
				id=6;
				side="WEST";
				vehicle="B_soldier_M_F";
				skill=0.93554336;
			};
			class Item1
			{
				position[]={1681.6644,5.5,5637.5288};
				id=7;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				player="PLAYER COMMANDER";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				init="dragon1 = group this; {_x MoveInCargo prince1} Foreach Units Group this;";
			};
			class Item2
			{
				position[]={1686.6644,5.5,5632.5288};
				id=8;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="CORPORAL";
				skill=0.96889579;
			};
			class Item3
			{
				position[]={1688.6644,5.5,5632.5288};
				id=9;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				skill=0.95936674;
			};
			class Item4
			{
				position[]={1694.0924,5.5,5632.9448};
				id=10;
				side="WEST";
				vehicle="B_medic_F";
				skill=0.94507307;
			};
			class Item5
			{
				position[]={1684.193,5.5,5632.394};
				id=11;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.95936674;
			};
		};
		class Waypoints
		{
			items=1;
			class Item0
			{
				position[]={3312.5771,151.78583,2376.52};
				type="GETOUT";
				synchronizations[]={0};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=1;
			};
		};
	};
	class Item7
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={1714.5795,5.5,5632.7988};
				id=12;
				side="WEST";
				vehicle="B_soldier_M_F";
				skill=0.93554336;
			};
			class Item1
			{
				position[]={1704.7352,5.5,5637.6318};
				id=13;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				init="dragon2 = group this; {_x MoveInCargo prince2} Foreach Units Group this;";
			};
			class Item2
			{
				position[]={1709.7352,5.5,5632.6318};
				id=14;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="CORPORAL";
				skill=0.96889579;
			};
			class Item3
			{
				position[]={1711.7352,5.5,5632.6318};
				id=15;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				skill=0.95936674;
			};
			class Item4
			{
				position[]={1717.1632,5.5,5633.0479};
				id=16;
				side="WEST";
				vehicle="B_medic_F";
				skill=0.94507307;
			};
			class Item5
			{
				position[]={1707.2638,5.5,5632.4971};
				id=17;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.95936674;
			};
		};
		class Waypoints
		{
			items=1;
			class Item0
			{
				position[]={3182.9504,158.66524,2257.2622};
				type="GETOUT";
				synchronizations[]={5};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=2;
			};
		};
	};
	class Item8
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={1689.733,5.5,5627.729};
				id=18;
				side="WEST";
				vehicle="B_soldier_M_F";
				skill=0.93554336;
			};
			class Item1
			{
				position[]={1679.8888,5.5,5632.562};
				id=19;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				init="dragon3 = group this; {_x MoveInCargo prince3} Foreach Units Group this;";
			};
			class Item2
			{
				position[]={1684.8888,5.5,5627.562};
				id=20;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="CORPORAL";
				skill=0.96889579;
			};
			class Item3
			{
				position[]={1686.8888,5.5,5627.562};
				id=21;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				skill=0.95936674;
			};
			class Item4
			{
				position[]={1692.3168,5.5,5627.978};
				id=22;
				side="WEST";
				vehicle="B_medic_F";
				skill=0.94507307;
			};
			class Item5
			{
				position[]={1682.4174,5.5,5627.4272};
				id=23;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.95936674;
			};
		};
		class Waypoints
		{
			items=1;
			class Item0
			{
				position[]={3115.4856,172.42462,2158.4761};
				type="GETOUT";
				synchronizations[]={6};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=3;
			};
		};
	};
	class Item9
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={1706.9978,5.5,5626.5874};
				id=24;
				side="WEST";
				vehicle="B_soldier_M_F";
				skill=0.93554336;
			};
			class Item1
			{
				position[]={1697.1536,5.5,5631.4204};
				id=25;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				init="dragon4 = group this; {_x MoveInCargo prince4} Foreach Units Group this;";
			};
			class Item2
			{
				position[]={1702.1536,5.5,5626.4204};
				id=26;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="CORPORAL";
				skill=0.96889579;
			};
			class Item3
			{
				position[]={1704.1536,5.5,5626.4204};
				id=27;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				skill=0.95936674;
			};
			class Item4
			{
				position[]={1709.5815,5.5,5626.8364};
				id=28;
				side="WEST";
				vehicle="B_medic_F";
				skill=0.94507307;
			};
			class Item5
			{
				position[]={1699.6821,5.5,5626.2856};
				id=29;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.95936674;
			};
		};
		class Waypoints
		{
			items=1;
			class Item0
			{
				position[]={2990.3376,165.45531,1949.3745};
				type="GETOUT";
				synchronizations[]={7};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=4;
			};
		};
	};
	class Item10
	{
		side="CIV";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={3141.2043,165.36353,2207.0522};
				id=30;
				side="CIV";
				vehicle="C_man_1";
				player="PLAY CDG";
				leader=1;
				skill=0.97842538;
			};
		};
	};
	class Item11
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={3074.7715,167.73349,2150.6392};
				id=31;
				side="WEST";
				vehicle="B_Soldier_F";
				player="PLAY CDG";
				leader=1;
				skill=0.97842538;
			};
		};
	};
	class Item12
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={3255.167,151.60521,2225.6729};
				special="FLY";
				id=32;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				init="h2 = group this; deleteVehicle this;";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={3209.3054,159.27365,2239.4087};
				type="TR UNLOAD";
				synchronizations[]={2};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=5;
			};
			class Item1
			{
				position[]={2444.8684,92.772163,2333.9473};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item13
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={3203.532,136.15363,2148.396};
				special="FLY";
				id=33;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				init="h3 = group this; deleteVehicle this;";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={3148.5376,162.84755,2139.6514};
				type="TR UNLOAD";
				synchronizations[]={3};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=6;
			};
			class Item1
			{
				position[]={2382.8616,55.865055,2179.1191};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item14
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={3089.373,141.9785,1950.6357};
				special="FLY";
				id=34;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				skill=0.60000002;
				init="h4 = group this; deleteVehicle this;";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={3043.5115,162.98283,1942.9448};
				type="TR UNLOAD";
				synchronizations[]={4};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=7;
			};
			class Item1
			{
				position[]={2221.4294,15.606802,1991.2231};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
};
class Vehicles
{
	items=4;
	class Item0
	{
		position[]={3015.626,165.54044,1937};
		id=35;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		skill=0.97842538;
	};
	class Item1
	{
		position[]={3126.2217,172.17834,2144.1729};
		id=36;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		skill=0.96413124;
	};
	class Item2
	{
		position[]={3181.364,158.78419,2248.2275};
		id=37;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		skill=0.96889579;
	};
	class Item3
	{
		position[]={3327.937,151.2627,2358.8877};
		id=38;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		skill=0.96413124;
	};
};
class Sensors
{
	items=2;
	class Item0
	{
		position[]={4264.0112,0.11343507,2185.5181};
		a=150;
		b=150;
		activationBy="LEADER";
		interruptable=1;
		age="UNKNOWN";
		idVehicle=0;
		expActiv="[prince2, prince3, prince4] join grpNull; group prince2 copyWaypoints h2; group prince3 copyWaypoints h3; group prince4 copyWaypoints h4;";
		class Effects
		{
		};
	};
	class Item1
	{
		position[]={1706.5939,5.5,5579.9346};
		activationBy="VEHICLE";
		interruptable=1;
		age="UNKNOWN";
		idVehicle=0;
		expActiv="[prince2, prince3, prince4] join prince1;";
		class Effects
		{
		};
	};
};
};
class Intro
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=1105288;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=7;
	day=6;
	hour=14;
	minute=15;
	startFogBase=0.001;
	forecastFogBase=0.001;
	startFogDecay=0.0049999999;
	forecastFogDecay=0.0049999999;
};
};
class OutroWin
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=10712669;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=7;
	day=6;
	hour=14;
	minute=15;
	startFogBase=0.001;
	forecastFogBase=0.001;
	startFogDecay=0.0049999999;
	forecastFogDecay=0.0049999999;
};
};
class OutroLoose
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=6370717;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=7;
	day=6;
	hour=14;
	minute=15;
	startFogBase=0.001;
	forecastFogBase=0.001;
	startFogDecay=0.0049999999;
	forecastFogDecay=0.0049999999;
};
};

Share this post


Link to post
Share on other sites

Your mission is a bit hard to see what's happening.

What I have found using a simple test.

Choppers will split and follow copied waypoints however there is a bug.

When speed is set to limited they stop and don't follow the new waypoints.

I have a feeling it may just be the speed of the aircraft that stops it working and not the fact that the WP is speed is "limited".

Another problem is getting cargo out of the aircraft, I have no issues in A2/OA but in A3 they refuse to get out.

They could be scripted to get out but it shouldn't be needed.

Share this post


Link to post
Share on other sites

It can be the speed of the aircraft because I have never set the speed to limited in any waypoint and in my mission they have to climb along the slope to get to the insertion points. Tried that with speed set to normal in new waypoints without any success. I already posted a ticket to have a waypoint to leave a group if you have previously joined it: http://feedback.arma3.com/view.php?id=9949

It should be the same system as if you get in the helo and then get out. So if you guys want that, you can support that ticket :P

Edited by matkob

Share this post


Link to post
Share on other sites

I made a new mission and reduced the number of choppers I had.

It seems to work without speed issues now, there are still issues with copying waypoints it seems to change the behaviour of the waypoint.

I can't get cargo out of the vehicle unless I force them out, waypoint settings transport unload/unload have no effect.

Example

http://www.sendspace.com/file/gqou3a

I had no issues using grpnull or creating new groups the issue is waypoints and syncs for me.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Seems to me that it really depends on how the choppers are grouped. I it is via trigger or waypoint, it is not working. It started working for me as soon as I grouped them in a common way from the beginning.

Your mission also works if you put "hideobject this" instead of setting damage to 1. This way the chopper still reamins there and sometimes it can cause problems - you can still hear the sounds and can cause problems with grouping or during insertion (with setting damage it appears destroyed and you have perfect crashsite). I will be trying more with "deletevehicle" but this needs to be done after your choppers joined the fake ones physically. Otherwise it is not working.

Share this post


Link to post
Share on other sites

After further testing I found out that waypoints of all deleted and destroyed units are deleted too. So your missions is working probably because they are pretty close and it is a matter of seconds while in my mission with the same system, they arrive after minutes.

I found a fix for all those things. And now it is working for me (it is a similar workaround).

1. you group your units in editor (with light blue lines).

2. when you come to the release point, you have to release units one by one - that means for each unit leaving a group you will have to have a separate waypoint (the reason is probably because if you release 3 units at once, they act like if they were a group and not single units - at least some of them). Example - the first unit you are going to release (from group prince1 -leader to prince4) is "prince4". To the waypoint's on act.: field you type -

[prince4]join grpNull; group prince4 copyWaypoints group h4;
. prince1 continues with it's own waypoints (subsequently you can also continuing detaching other units from the group).

3. "h4" is a phoney helicopter you are going to create (you type h4 as a name). In it's init field you type:

hideobject this;

4. you create a waypoint of "h4" on top of it (nr. 0). You synchronize that waypoint with the release waypoint of the group leader (the one where you inserted grpnull command). This is going to prevent hidden "h4" fly away until our group reaches the release point (we are going to let the hidden "h4" disappear in a moment for good - but only after our "prince4" has joined it). If the hidden unit disappears before it was joined by our separated unit - it's waypoints would be deleted automatically and our separated unit would stop.

5. To be sure "h4" does not disappear prematurely we insert at least one more normal waypoint (I recommend in a reasonable distance from nr. 0).

6. In the next waypoint we can let the "h4" disappear for good. If we do not do it, it is going to act as a prince4 leader, you can still hear sounds of engine and your real helicopters can collide with it). In the on act.: of the waypoint you type:

{deleteVehicle _x} forEach crew h4 + [h4]
. This way it disappears with it's crew which would otherwise appear falling from the skies.

7. You continue normally with "h4" waypoints and you do everything what "prince4" is supposed to. You do not need to force the passengers out with any commands - just use normal "transport unload" - "get out" synchronized waypoint combination.

That's pretty it

Edited by matkob

Share this post


Link to post
Share on other sites

Well, have not been testing this since last summer but things have changed and the system is not working anymore.

The original idea is - group of helicopters transporting several groups of passengers needs to split into single helicopters, unload their passengers in their respective invisible helipads, fly away and rejoin the group. For now only the leading helicopters is doing what intended. The rest of helicopters leave the group and stop...

Any ideas

Share this post


Link to post
Share on other sites

So I made it working without detaching from group, however, You never know if it is going to work or not. Sometimes was unloading troops, sometimes the helicopter just ascends and does not move -seems to be dependent on how and how much waypoints the AI is going to read at one time - sometimes you can hear him saying 3 in advance, sometimes none. If I group the helos at the beginning, it does no even spawn the other helos. Everytime it is not working I needed to restart editor or even Arma. Anyway, how would i script something like that?

version=12;
class Mission
{
   addOns[]=
   {
       "A3_Air_F_Heli_Light_01",
       "A3_Characters_F_BLUFOR",
       "A3_Structures_F_Mil_Helipads",
       "a3_map_altis",
       "A3_Modules_F_HC"
   };
   addOnsAuto[]=
   {
       "A3_Air_F_Heli_Light_01",
       "A3_Characters_F_BLUFOR",
       "A3_Modules_F_HC",
       "A3_Structures_F_Mil_Helipads",
       "a3_map_altis"
   };
   randomSeed=15901876;
   class Intel
   {
       timeOfChanges=1800.0002;
       startWeather=0.30000001;
       startWind=0.1;
       startWaves=0.1;
       forecastWeather=0.30000001;
       forecastWind=0.1;
       forecastWaves=0.1;
       forecastLightnings=0.1;
       year=2035;
       month=6;
       day=24;
       hour=12;
       minute=0;
       startFogDecay=0.013;
       forecastFogDecay=0.013;
   };
   class Groups
   {
       items=9;
       class Item0
       {
           side="WEST";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={14835.816,17.911091,16377.931};
                   azimut=132.295;
                   id=0;
                   side="WEST";
                   vehicle="B_Heli_Light_01_F";
                   leader=1;
                   rank="CAPTAIN";
                   skill=0.94030851;
                   text="prince1";
                   init="this engineOn true; this allowFleeing 0; prince1 setgroupid [""Prince""]; this setformation ""file"";";
               };
           };
           class Waypoints
           {
               items=17;
               class Item0
               {
                   position[]={14835.816,17.911091,16377.931};
                   id=0;
                   synchronizations[]={13};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=8;
               };
               class Item1
               {
                   position[]={14838.288,17.92,16386.164};
                   synchronizations[]={14};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=9;
               };
               class Item2
               {
                   position[]={14839.954,17.92,16394.818};
                   synchronizations[]={15};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=10;
               };
               class Item3
               {
                   position[]={14981.679,17.879999,16714.135};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item4
               {
                   position[]={15109.271,17.91,16890.16};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item5
               {
                   position[]={15054.031,17.620037,17275.047};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item6
               {
                   position[]={15417.774,29.657646,18076.709};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item7
               {
                   position[]={15780.439,31.968895,18713.895};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item8
               {
                   position[]={16449.904,22.258015,19201.23};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item9
               {
                   position[]={17029.168,26.760773,19226.285};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item10
               {
                   position[]={17601.123,19.305683,19087.877};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item11
               {
                   position[]={17723.324,-0.099327967,18824.314};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item12
               {
                   position[]={17639.295,0.10915405,18572.4};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item13
               {
                   position[]={17385.574,6.3479171,18293.115};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item14
               {
                   position[]={17362.498,6.8900318,18267.125};
                   expActiv="{unassignVehicle _x;} forEach units dragon1; commandGetOut units dragon1; {unassignVehicle _x;} forEach units dragon2; commandGetOut units dragon2; {unassignVehicle _x;} forEach units dragon3; commandGetOut units dragon3; {unassignVehicle _x;} forEach units dragon4; commandGetOut units dragon4;";
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item15
               {
                   position[]={17348.781,7.0657911,18257.047};
                   type="TR UNLOAD";
                   synchronizations[]={12};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=11;
               };
               class Item16
               {
                   position[]={14952.043,17.950001,16506.76};
                   expActiv="Prince1 land ""land""; dostop prince1;";
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
           };
       };
       class Item1
       {
           side="WEST";
           class Vehicles
           {
               items=6;
               class Item0
               {
                   position[]={14824.422,17.889999,16367.695};
                   azimut=132.295;
                   id=1;
                   side="WEST";
                   vehicle="B_Soldier_SL_F";
                   player="PLAYER COMMANDER";
                   leader=1;
                   rank="CAPTAIN";
                   skill=0.94030851;
                   text="d1";
                   init="dragon1 = group this; {_x assignAsCargo prince1; _x MoveInCargo prince1} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon1 setgroupid [""Dragon 1""];";
                   syncId=0;
                   synchronizations[]={2};
               };
               class Item1
               {
                   position[]={14822.445,17.893486,16372.668};
                   azimut=132.295;
                   id=2;
                   side="WEST";
                   vehicle="B_soldier_M_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item2
               {
                   position[]={14820.755,17.889999,16370.943};
                   azimut=132.295;
                   id=3;
                   side="WEST";
                   vehicle="B_Soldier_GL_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item3
               {
                   position[]={14819.822,17.889999,16369.522};
                   azimut=132.295;
                   id=4;
                   side="WEST";
                   vehicle="B_soldier_exp_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item4
               {
                   position[]={14818.159,17.889999,16368.143};
                   azimut=132.295;
                   id=5;
                   side="WEST";
                   vehicle="B_medic_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item5
               {
                   position[]={14817.996,17.889736,16366.804};
                   azimut=132.295;
                   id=6;
                   side="WEST";
                   vehicle="B_soldier_AR_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
           };
           class Waypoints
           {
               items=2;
               class Item0
               {
                   position[]={17363.705,6.8202686,18281.924};
                   type="GETOUT";
                   synchronizations[]={11};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=12;
               };
               class Item1
               {
                   position[]={17364.313,6.3786278,18321.045};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
           };
       };
       class Item2
       {
           side="WEST";
           class Vehicles
           {
               items=6;
               class Item0
               {
                   position[]={14801.662,17.861351,16346.851};
                   azimut=132.295;
                   id=7;
                   side="WEST";
                   vehicle="B_Soldier_SL_F";
                   leader=1;
                   rank="CAPTAIN";
                   skill=0.94030851;
                   text="d2";
                   init="dragon2 = group this; {_x assignAsCargo prince2; _x MoveInCargo prince2} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon2 setgroupid [""Dragon 2""];";
                   syncId=1;
                   synchronizations[]={3};
               };
               class Item1
               {
                   position[]={14799.686,17.865347,16351.823};
                   azimut=132.295;
                   id=8;
                   side="WEST";
                   vehicle="B_soldier_M_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item2
               {
                   position[]={14797.995,17.860794,16350.099};
                   azimut=132.295;
                   id=9;
                   side="WEST";
                   vehicle="B_Soldier_GL_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item3
               {
                   position[]={14797.063,17.860001,16348.678};
                   azimut=132.295;
                   id=10;
                   side="WEST";
                   vehicle="B_soldier_exp_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item4
               {
                   position[]={14795.399,17.860001,16347.298};
                   azimut=132.295;
                   id=11;
                   side="WEST";
                   vehicle="B_medic_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item5
               {
                   position[]={14795.236,17.860001,16345.959};
                   azimut=132.295;
                   id=12;
                   side="WEST";
                   vehicle="B_soldier_AR_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
           };
           class Waypoints
           {
               items=2;
               class Item0
               {
                   position[]={17391.947,5.7121458,18315.574};
                   type="GETOUT";
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item1
               {
                   position[]={17378.598,4.182024,18351.959};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
           };
       };
       class Item3
       {
           side="LOGIC";
           class Vehicles
           {
               items=4;
               class Item0
               {
                   position[]={14838.101,17.890816,16346.213};
                   id=13;
                   side="LOGIC";
                   vehicle="HighCommand";
                   leader=1;
                   lock="UNLOCKED";
                   skill=0.60000002;
                   syncId=2;
                   synchronizations[]={0};
               };
               class Item1
               {
                   position[]={14822.31,17.873081,16336.358};
                   id=14;
                   side="LOGIC";
                   vehicle="HighCommandSubordinate";
                   lock="UNLOCKED";
                   skill=0.60000002;
                   syncId=3;
                   synchronizations[]={1};
               };
               class Item2
               {
                   position[]={14800.084,17.85,16315.089};
                   id=15;
                   side="LOGIC";
                   vehicle="HighCommandSubordinate";
                   lock="UNLOCKED";
                   skill=0.60000002;
                   syncId=4;
                   synchronizations[]={6};
               };
               class Item3
               {
                   position[]={14777.38,17.85,16291.905};
                   id=16;
                   side="LOGIC";
                   vehicle="HighCommandSubordinate";
                   lock="UNLOCKED";
                   skill=0.60000002;
                   syncId=5;
                   synchronizations[]={7};
               };
           };
       };
       class Item4
       {
           side="WEST";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={14812.688,17.872608,16351.766};
                   azimut=132.295;
                   special="NONE";
                   id=17;
                   side="WEST";
                   vehicle="B_Heli_Light_01_F";
                   leader=1;
                   rank="LIEUTENANT";
                   skill=0.94030851;
                   text="prince2";
                   init="this engineOn true; this allowFleeing 0;";
               };
           };
           class Waypoints
           {
               items=1;
               class Item0
               {
                   position[]={14822.951,17.886814,16359.66};
                   type="JOIN";
                   synchronizations[]={8};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=13;
               };
           };
       };
       class Item5
       {
           side="WEST";
           class Vehicles
           {
               items=6;
               class Item0
               {
                   position[]={14779.479,17.85,16323.254};
                   azimut=132.295;
                   id=18;
                   side="WEST";
                   vehicle="B_Soldier_SL_F";
                   leader=1;
                   rank="CAPTAIN";
                   skill=0.94030851;
                   text="d3";
                   init="dragon3 = group this; {_x assignAsCargo prince3; _x MoveInCargo prince3} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon3 setgroupid [""Dragon 3""];";
                   syncId=6;
                   synchronizations[]={4};
               };
               class Item1
               {
                   position[]={14777.502,17.85,16328.227};
                   azimut=132.295;
                   id=19;
                   side="WEST";
                   vehicle="B_soldier_M_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item2
               {
                   position[]={14775.812,17.85,16326.502};
                   azimut=132.295;
                   id=20;
                   side="WEST";
                   vehicle="B_Soldier_GL_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item3
               {
                   position[]={14774.88,17.85,16325.081};
                   azimut=132.295;
                   id=21;
                   side="WEST";
                   vehicle="B_soldier_exp_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item4
               {
                   position[]={14773.216,17.85,16323.701};
                   azimut=132.295;
                   id=22;
                   side="WEST";
                   vehicle="B_medic_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item5
               {
                   position[]={14773.053,17.85,16322.362};
                   azimut=132.295;
                   id=23;
                   side="WEST";
                   vehicle="B_soldier_AR_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
           };
           class Waypoints
           {
               items=2;
               class Item0
               {
                   position[]={17401.598,5.3299437,18157.082};
                   type="GETOUT";
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item1
               {
                   position[]={17343.906,7.188015,18168.619};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
           };
       };
       class Item6
       {
           side="WEST";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={14783.355,17.85,16323.912};
                   azimut=132.295;
                   special="NONE";
                   id=24;
                   side="WEST";
                   vehicle="B_Heli_Light_01_F";
                   leader=1;
                   rank="LIEUTENANT";
                   skill=0.94030851;
                   text="prince3";
                   init="this engineOn true; this allowFleeing 0;";
               };
           };
           class Waypoints
           {
               items=1;
               class Item0
               {
                   position[]={14797.9,17.860001,16329.188};
                   type="JOIN";
                   synchronizations[]={9};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=14;
               };
           };
       };
       class Item7
       {
           side="WEST";
           class Vehicles
           {
               items=6;
               class Item0
               {
                   position[]={14752.438,17.83,16298.188};
                   azimut=132.295;
                   id=25;
                   side="WEST";
                   vehicle="B_Soldier_SL_F";
                   leader=1;
                   rank="CAPTAIN";
                   skill=0.94030851;
                   text="d4";
                   init="dragon4 = group this; {_x assignAsCargo prince4; _x MoveInCargo prince4} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon4 setgroupid [""Dragon 4""];";
                   syncId=7;
                   synchronizations[]={5};
               };
               class Item1
               {
                   position[]={14750.462,17.83,16303.16};
                   azimut=132.295;
                   id=26;
                   side="WEST";
                   vehicle="B_soldier_M_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item2
               {
                   position[]={14748.771,17.83,16301.436};
                   azimut=132.295;
                   id=27;
                   side="WEST";
                   vehicle="B_Soldier_GL_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item3
               {
                   position[]={14747.84,17.83,16300.015};
                   azimut=132.295;
                   id=28;
                   side="WEST";
                   vehicle="B_soldier_exp_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item4
               {
                   position[]={14746.176,17.83,16298.635};
                   azimut=132.295;
                   id=29;
                   side="WEST";
                   vehicle="B_medic_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
               class Item5
               {
                   position[]={14746.013,17.83,16297.296};
                   azimut=132.295;
                   id=30;
                   side="WEST";
                   vehicle="B_soldier_AR_F";
                   rank="SERGEANT";
                   skill=0.94030851;
                   init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
               };
           };
           class Waypoints
           {
               items=2;
               class Item0
               {
                   position[]={17263.918,6.216958,18378.27};
                   type="GETOUT";
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
               class Item1
               {
                   position[]={17318.938,6.2127295,18357.695};
                   class Effects
                   {
                   };
                   showWP="NEVER";
               };
           };
       };
       class Item8
       {
           side="WEST";
           class Vehicles
           {
               items=1;
               class Item0
               {
                   position[]={14756.315,17.835089,16298.846};
                   azimut=132.295;
                   special="NONE";
                   id=31;
                   side="WEST";
                   vehicle="B_Heli_Light_01_F";
                   leader=1;
                   rank="LIEUTENANT";
                   skill=0.94030851;
                   text="prince4";
                   init="this engineOn true; this allowFleeing 0;";
               };
           };
           class Waypoints
           {
               items=1;
               class Item0
               {
                   position[]={14773.233,17.847645,16308.124};
                   type="JOIN";
                   synchronizations[]={10};
                   class Effects
                   {
                   };
                   showWP="NEVER";
                   syncId=15;
               };
           };
       };
   };
   class Vehicles
   {
       items=5;
       class Item0
       {
           position[]={17371.998,6.7226734,18277.855};
           azimut=132.295;
           id=32;
           side="EMPTY";
           vehicle="Land_HelipadEmpty_F";
           leader=1;
           skill=0.94030851;
           text="pad1";
       };
       class Item1
       {
           position[]={17400.623,5.3857422,18314.98};
           azimut=132.295;
           id=33;
           side="EMPTY";
           vehicle="Land_HelipadEmpty_F";
           leader=1;
           skill=0.94030851;
           text="pad2";
       };
       class Item2
       {
           position[]={17271.488,6.4023438,18380.932};
           azimut=132.295;
           id=34;
           side="EMPTY";
           vehicle="Land_HelipadEmpty_F";
           leader=1;
           skill=0.94030851;
           text="pad4";
       };
       class Item3
       {
           position[]={17411.85,5.0506301,18157.307};
           azimut=132.295;
           id=35;
           side="EMPTY";
           vehicle="Land_HelipadEmpty_F";
           leader=1;
           skill=0.94030851;
           text="pad3";
       };
       class Item4
       {
           position[]={14944.301,17.950001,16499.152};
           azimut=132.295;
           id=36;
           side="EMPTY";
           vehicle="Land_HelipadEmpty_F";
           leader=1;
           skill=0.94030851;
       };
   };
};
class Intro
{
   addOns[]=
   {
       "a3_map_altis"
   };
   addOnsAuto[]=
   {
       "a3_map_altis"
   };
   randomSeed=14664251;
   class Intel
   {
       timeOfChanges=1800.0002;
       startWeather=0.30000001;
       startWind=0.1;
       startWaves=0.1;
       forecastWeather=0.30000001;
       forecastWind=0.1;
       forecastWaves=0.1;
       forecastLightnings=0.1;
       year=2035;
       month=6;
       day=24;
       hour=12;
       minute=0;
       startFogDecay=0.013;
       forecastFogDecay=0.013;
   };
};
class OutroWin
{
   addOns[]=
   {
       "a3_map_altis"
   };
   addOnsAuto[]=
   {
       "a3_map_altis"
   };
   randomSeed=16049842;
   class Intel
   {
       timeOfChanges=1800.0002;
       startWeather=0.30000001;
       startWind=0.1;
       startWaves=0.1;
       forecastWeather=0.30000001;
       forecastWind=0.1;
       forecastWaves=0.1;
       forecastLightnings=0.1;
       year=2035;
       month=6;
       day=24;
       hour=12;
       minute=0;
       startFogDecay=0.013;
       forecastFogDecay=0.013;
   };
};
class OutroLoose
{
   addOns[]=
   {
       "a3_map_altis"
   };
   addOnsAuto[]=
   {
       "a3_map_altis"
   };
   randomSeed=8545072;
   class Intel
   {
       timeOfChanges=1800.0002;
       startWeather=0.30000001;
       startWind=0.1;
       startWaves=0.1;
       forecastWeather=0.30000001;
       forecastWind=0.1;
       forecastWaves=0.1;
       forecastLightnings=0.1;
       year=2035;
       month=6;
       day=24;
       hour=12;
       minute=0;
       startFogDecay=0.013;
       forecastFogDecay=0.013;
   };
};

Share this post


Link to post
Share on other sites

I had a quick look, I didn't like the way you grouped the choppers ao I changed it.

If you can try it and see if there are any more issues.

version=12;
class Mission
{
addOns[]=
{
	"A3_Air_F_Heli_Light_01",
	"A3_Characters_F_BLUFOR",
	"A3_Structures_F_Mil_Helipads",
	"a3_map_altis",
	"A3_Modules_F_HC"
};
addOnsAuto[]=
{
	"A3_Air_F_Heli_Light_01",
	"A3_Characters_F_BLUFOR",
	"A3_Modules_F_HC",
	"A3_Structures_F_Mil_Helipads",
	"a3_map_altis"
};
randomSeed=15901876;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=6;
	day=24;
	hour=12;
	minute=0;
	startFogDecay=0.013;
	forecastFogDecay=0.013;
};
class Groups
{
	items=9;
	class Item0
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={14835.816,17.911091,16377.931};
				azimut=132.295;
				id=0;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				text="prince1";
				init="this engineOn true; this allowFleeing 0; prince1 setgroupid [""Prince""]; this setformation ""file"";";
			};
		};
		class Waypoints
		{
			items=17;
			class Item0
			{
				position[]={14835.816,17.911091,16377.931};
				id=0;
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={14838.288,17.92,16386.164};
				expActiv="[prince2,prince3,prince4] join vehicle this";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={14839.954,17.92,16394.818};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item3
			{
				position[]={14981.679,17.879999,16714.135};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item4
			{
				position[]={15109.271,17.91,16890.16};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item5
			{
				position[]={15054.031,17.620037,17275.047};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item6
			{
				position[]={15417.774,29.657646,18076.709};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item7
			{
				position[]={15780.439,31.968895,18713.895};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item8
			{
				position[]={16449.904,22.258015,19201.23};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item9
			{
				position[]={17029.168,26.760773,19226.285};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item10
			{
				position[]={17601.123,19.305683,19087.877};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item11
			{
				position[]={17723.324,-0.099327967,18824.314};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item12
			{
				position[]={17639.295,0.10915405,18572.4};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item13
			{
				position[]={17385.574,6.3479171,18293.115};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item14
			{
				position[]={17362.498,6.8900318,18267.125};
				expActiv="{unassignVehicle _x;} forEach units dragon1; commandGetOut units dragon1; {unassignVehicle _x;} forEach units dragon2; commandGetOut units dragon2; {unassignVehicle _x;} forEach units dragon3; commandGetOut units dragon3; {unassignVehicle _x;} forEach units dragon4; commandGetOut units dragon4;";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item15
			{
				position[]={17348.781,7.0657911,18257.047};
				type="TR UNLOAD";
				synchronizations[]={9};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=8;
			};
			class Item16
			{
				position[]={14952.043,17.950001,16506.76};
				expActiv="Prince1 land ""land""; dostop prince1;";
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item1
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={14824.422,17.889999,16367.695};
				azimut=132.295;
				id=1;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				player="PLAYER COMMANDER";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				text="d1";
				init="dragon1 = group this; {_x assignAsCargo prince1; _x MoveInCargo prince1} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon1 setgroupid [""Dragon 1""];";
				syncId=0;
				synchronizations[]={2};
			};
			class Item1
			{
				position[]={14822.445,17.893486,16372.668};
				azimut=132.295;
				id=2;
				side="WEST";
				vehicle="B_soldier_M_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item2
			{
				position[]={14820.755,17.889999,16370.943};
				azimut=132.295;
				id=3;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item3
			{
				position[]={14819.822,17.889999,16369.522};
				azimut=132.295;
				id=4;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item4
			{
				position[]={14818.159,17.889999,16368.143};
				azimut=132.295;
				id=5;
				side="WEST";
				vehicle="B_medic_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item5
			{
				position[]={14817.996,17.889736,16366.804};
				azimut=132.295;
				id=6;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={17363.705,6.8202686,18281.924};
				type="GETOUT";
				synchronizations[]={8};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=9;
			};
			class Item1
			{
				position[]={17364.313,6.3786278,18321.045};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item2
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={14801.662,17.861351,16346.851};
				azimut=132.295;
				id=7;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				text="d2";
				init="dragon2 = group this; {_x assignAsCargo prince2; _x MoveInCargo prince2} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon2 setgroupid [""Dragon 2""];";
				syncId=1;
				synchronizations[]={3};
			};
			class Item1
			{
				position[]={14799.686,17.865347,16351.823};
				azimut=132.295;
				id=8;
				side="WEST";
				vehicle="B_soldier_M_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item2
			{
				position[]={14797.995,17.860794,16350.099};
				azimut=132.295;
				id=9;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item3
			{
				position[]={14797.063,17.860001,16348.678};
				azimut=132.295;
				id=10;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item4
			{
				position[]={14795.399,17.860001,16347.298};
				azimut=132.295;
				id=11;
				side="WEST";
				vehicle="B_medic_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item5
			{
				position[]={14795.236,17.860001,16345.959};
				azimut=132.295;
				id=12;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={17391.947,5.7121458,18315.574};
				type="GETOUT";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={17378.598,4.182024,18351.959};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item3
	{
		side="LOGIC";
		class Vehicles
		{
			items=4;
			class Item0
			{
				position[]={14838.101,17.890816,16346.213};
				id=13;
				side="LOGIC";
				vehicle="HighCommand";
				leader=1;
				lock="UNLOCKED";
				skill=0.60000002;
				syncId=2;
				synchronizations[]={0};
			};
			class Item1
			{
				position[]={14822.31,17.873081,16336.358};
				id=14;
				side="LOGIC";
				vehicle="HighCommandSubordinate";
				lock="UNLOCKED";
				skill=0.60000002;
				syncId=3;
				synchronizations[]={1};
			};
			class Item2
			{
				position[]={14800.084,17.85,16315.089};
				id=15;
				side="LOGIC";
				vehicle="HighCommandSubordinate";
				lock="UNLOCKED";
				skill=0.60000002;
				syncId=4;
				synchronizations[]={6};
			};
			class Item3
			{
				position[]={14777.38,17.85,16291.905};
				id=16;
				side="LOGIC";
				vehicle="HighCommandSubordinate";
				lock="UNLOCKED";
				skill=0.60000002;
				syncId=5;
				synchronizations[]={7};
			};
		};
	};
	class Item4
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={14812.688,17.872608,16351.766};
				azimut=132.295;
				special="NONE";
				id=17;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				text="prince2";
				init="this engineOn true; this allowFleeing 0;";
			};
		};
	};
	class Item5
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={14779.479,17.85,16323.254};
				azimut=132.295;
				id=18;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				text="d3";
				init="dragon3 = group this; {_x assignAsCargo prince3; _x MoveInCargo prince3} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon3 setgroupid [""Dragon 3""];";
				syncId=6;
				synchronizations[]={4};
			};
			class Item1
			{
				position[]={14777.502,17.85,16328.227};
				azimut=132.295;
				id=19;
				side="WEST";
				vehicle="B_soldier_M_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item2
			{
				position[]={14775.812,17.85,16326.502};
				azimut=132.295;
				id=20;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item3
			{
				position[]={14774.88,17.85,16325.081};
				azimut=132.295;
				id=21;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item4
			{
				position[]={14773.216,17.85,16323.701};
				azimut=132.295;
				id=22;
				side="WEST";
				vehicle="B_medic_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item5
			{
				position[]={14773.053,17.85,16322.362};
				azimut=132.295;
				id=23;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={17401.598,5.3299437,18157.082};
				type="GETOUT";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={17343.906,7.188015,18168.619};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item6
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={14783.355,17.85,16323.912};
				azimut=132.295;
				special="NONE";
				id=24;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				text="prince3";
				init="this engineOn true; this allowFleeing 0;";
			};
		};
	};
	class Item7
	{
		side="WEST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={14752.438,17.83,16298.188};
				azimut=132.295;
				id=25;
				side="WEST";
				vehicle="B_Soldier_SL_F";
				leader=1;
				rank="CAPTAIN";
				skill=0.94030851;
				text="d4";
				init="dragon4 = group this; {_x assignAsCargo prince4; _x MoveInCargo prince4} Foreach Units Group this; this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F""; dragon4 setgroupid [""Dragon 4""];";
				syncId=7;
				synchronizations[]={5};
			};
			class Item1
			{
				position[]={14750.462,17.83,16303.16};
				azimut=132.295;
				id=26;
				side="WEST";
				vehicle="B_soldier_M_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item2
			{
				position[]={14748.771,17.83,16301.436};
				azimut=132.295;
				id=27;
				side="WEST";
				vehicle="B_Soldier_GL_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item3
			{
				position[]={14747.84,17.83,16300.015};
				azimut=132.295;
				id=28;
				side="WEST";
				vehicle="B_soldier_exp_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item4
			{
				position[]={14746.176,17.83,16298.635};
				azimut=132.295;
				id=29;
				side="WEST";
				vehicle="B_medic_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
			class Item5
			{
				position[]={14746.013,17.83,16297.296};
				azimut=132.295;
				id=30;
				side="WEST";
				vehicle="B_soldier_AR_F";
				rank="SERGEANT";
				skill=0.94030851;
				init="this addprimaryweaponitem ""muzzle_snds_H""; this removeweapon ""hgun_P07_F""; this addweapon ""hgun_P07_snds_F"";";
			};
		};
		class Waypoints
		{
			items=2;
			class Item0
			{
				position[]={17263.918,6.216958,18378.27};
				type="GETOUT";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={17318.938,6.2127295,18357.695};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item8
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={14756.315,17.835089,16298.846};
				azimut=132.295;
				special="NONE";
				id=31;
				side="WEST";
				vehicle="B_Heli_Light_01_F";
				leader=1;
				rank="LIEUTENANT";
				skill=0.94030851;
				text="prince4";
				init="this engineOn true; this allowFleeing 0;";
			};
		};
	};
};
class Vehicles
{
	items=5;
	class Item0
	{
		position[]={17371.998,6.7226734,18277.855};
		azimut=132.295;
		id=32;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		leader=1;
		skill=0.94030851;
		text="pad1";
	};
	class Item1
	{
		position[]={17400.623,5.3857422,18314.98};
		azimut=132.295;
		id=33;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		leader=1;
		skill=0.94030851;
		text="pad2";
	};
	class Item2
	{
		position[]={17271.488,6.4023438,18380.932};
		azimut=132.295;
		id=34;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		leader=1;
		skill=0.94030851;
		text="pad4";
	};
	class Item3
	{
		position[]={17411.85,5.0506301,18157.307};
		azimut=132.295;
		id=35;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		leader=1;
		skill=0.94030851;
		text="pad3";
	};
	class Item4
	{
		position[]={14944.301,17.950001,16499.152};
		azimut=132.295;
		id=36;
		side="EMPTY";
		vehicle="Land_HelipadEmpty_F";
		leader=1;
		skill=0.94030851;
	};
};
};
class Intro
{
addOns[]=
{
	"a3_map_altis"
};
addOnsAuto[]=
{
	"a3_map_altis"
};
randomSeed=14664251;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=6;
	day=24;
	hour=12;
	minute=0;
	startFogDecay=0.013;
	forecastFogDecay=0.013;
};
};
class OutroWin
{
addOns[]=
{
	"a3_map_altis"
};
addOnsAuto[]=
{
	"a3_map_altis"
};
randomSeed=16049842;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=6;
	day=24;
	hour=12;
	minute=0;
	startFogDecay=0.013;
	forecastFogDecay=0.013;
};
};
class OutroLoose
{
addOns[]=
{
	"a3_map_altis"
};
addOnsAuto[]=
{
	"a3_map_altis"
};
randomSeed=8545072;
class Intel
{
	timeOfChanges=1800.0002;
	startWeather=0.30000001;
	startWind=0.1;
	startWaves=0.1;
	forecastWeather=0.30000001;
	forecastWind=0.1;
	forecastWaves=0.1;
	forecastLightnings=0.1;
	year=2035;
	month=6;
	day=24;
	hour=12;
	minute=0;
	startFogDecay=0.013;
	forecastFogDecay=0.013;
};
};

Share this post


Link to post
Share on other sites

They started dismounting so I solved it by moving the WP after joining wp further. You could actually hear the pilot announcing the wps ahead. If he announced too much, they dismounted, if he announced only one or none, the helicopters stayed hovering (this was only happening with my mission, not with yours). In high command Prince 2,3,4 are not integrated into Prince group but have separate call-signs (alpha-xy). In my original mission they were integrated in the Prince Group. How can I script those things so they join the group, and at the release point they leave the group and unload troops separately and not as a group and subsequently they rejoin the group to RTB?

Share this post


Link to post
Share on other sites

So let me make sure I have this right.

1. They're ok as they are flying in a group to a certain point.

2. At that point they need to separate and and do their cargo drop.

3. They then re-group and fly back to base.

Is that correct?

Share this post


Link to post
Share on other sites

Ok if you don't get any answers I'll take a look as soon as I get chance.

Share this post


Link to post
Share on other sites

I've take a look but started to get the odd results you mention, ie getting kicked out of the chopper at mission start.

What's happening is that the on act of the waypoints are activating when they shouldn't.

The unassignVehicle code is running at mission start, this is probably the bug that BIS know about but still haven't issued the fix yet.

Until it fixed it's not worth trying to do anything.

Share this post


Link to post
Share on other sites

Sometimes it worked when I moved the waypoint after Join WP at least 75 m from it or even further.

Share this post


Link to post
Share on other sites

For me it worked the first half dozen times and then I started getting kicked out while on the runway.

The only way to stop it was to remove the unassignVehicle waypoint was executing the kickout.

I also had a another script that used waypoints that worked the day before but yesterday failed, I copied it to A2 and it still works fine.

Share this post


Link to post
Share on other sites

In that case i did not delete the waypoint but restarted the editor. Sometimes I needed to restart Arma

Share this post


Link to post
Share on other sites

Todays patch mentions a fix for vehicle waypoints, but I'm not sure I'll have chance to test it.

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

×