Jump to content
Sign in to follow this  
braker

[Editor] AI diving from a boat

Recommended Posts

Hello, i have a problem with AI divers:

Here my scenario: I want to put a RED boat on the sea with six divers on board, and when a BLUE dinghy activate a trigger, the RED speedboat rush on the BLUE boat and engage it, the players(divers) on the BLUE dinghy diving to escape the speedboat's guns, in this case, the speedboat must unload his six divers (and return immediately at home) to find and kill the BLUE players under water... (after escape from the RED divers the players return at their boat(if it still works) and continue the mission).

But i have some problems:

-The players in the boat at the mission begining are not in the boat, how to ensure that the RED boat will rush and target them without put an approximate point in the editor?

-When the trigger is activated, the RED boat unloading the divers on the beach instead of maintaining position and unload the divers on the sea...

-When i put a command in the trigger to force the divers ejection on the sea, they return immediately to the boat which him, went aground on the beach...

If you can help me, your are realy welcome.

My SQM file (if it can help):

version=12;
class Mission
{
addOns[]=
{
	"A3_Characters_F_BLUFOR",
	"a3_map_stratis",
	"A3_Boat_F_Speedboat",
	"A3_Weapons_F_Ammoboxes",
	"A3_Air_F_Ka60",
	"A3_Soft_F_Galkin",
	"A3_Characters_F_OPFOR",
	"A3_Boat_F_Assault_Boat",
	"A3_Air_F_MH9"
};
addOnsAuto[]=
{
	"A3_Characters_F_BLUFOR",
	"A3_Characters_F_OPFOR",
	"A3_Boat_F_Speedboat",
	"A3_Boat_F_Assault_Boat",
	"A3_Weapons_F_Ammoboxes",
	"A3_Soft_F_Galkin",
	"A3_Air_F_Ka60",
	"A3_Air_F_MH9",
	"a3_map_stratis"
};
randomSeed=11090481;
class Intel
{
	briefingName="Brume";
	briefingDescription="Brouillard";
	startWeather=0.29999998;
	startFog=0.34999999;
	startWind=0.099999994;
	startWaves=0.099999994;
	forecastWeather=0.29999998;
	forecastFog=0.34999999;
	forecastWind=0.099999994;
	forecastWaves=0.099999994;
	forecastLightnings=0.099999994;
	year=2035;
	month=7;
	day=6;
	hour=14;
	minute=15;
};
class Groups
{
	items=9;
	class Item0
	{
		side="WEST";
		class Vehicles
		{
			items=3;
			class Item0
			{
				position[]={2860.1521,2.6693513,6086.0674};
				azimut=305;
				id=0;
				side="WEST";
				vehicle="B_diver_TL_F";
				leader=1;
				rank="SERGEANT";
				skill=0.60000002;
			};
			class Item1
			{
				position[]={2862.717,2.737926,6085.4678};
				azimut=305;
				id=1;
				side="WEST";
				vehicle="B_diver_TL_F";
				player="PLAY CDG";
				rank="SERGEANT";
				skill=0.60000002;
			};
			class Item2
			{
				position[]={2862.0459,2.7170312,6084.3076};
				azimut=305;
				id=2;
				side="WEST";
				vehicle="B_diver_TL_F";
				player="PLAY CDG";
				rank="SERGEANT";
				skill=0.60000002;
			};
		};
	};
	class Item1
	{
		side="EAST";
		class Vehicles
		{
			items=3;
			class Item0
			{
				position[]={1939.6178,2.7651715,3518.1758};
				azimut=305;
				id=3;
				side="EAST";
				vehicle="O_Soldier_AR_F";
				rank="SERGEANT";
				skill=0.60000002;
			};
			class Item1
			{
				position[]={1930.9706,3.0165169,3506.0562};
				azimut=45;
				id=4;
				side="EAST";
				vehicle="O_Soldier_TL_F";
				leader=1;
				rank="CAPTAIN";
				skill=0.60000002;
			};
			class Item2
			{
				position[]={1928.1653,2.4811475,3521.1411};
				azimut=45;
				id=5;
				side="EAST";
				vehicle="O_Soldier_GL_F";
				rank="CORPORAL";
				skill=0.60000002;
			};
		};
		class Waypoints
		{
			items=4;
			class Item0
			{
				position[]={1922.6071,2.4697113,3561.6704};
				speed="LIMITED";
				combat="SAFE";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={2063.1519,8.3360691,3593.9951};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={1917.9222,2.8016109,3569.4004};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item3
			{
				position[]={1916.9852,2.2135336,3472.4243};
				type="CYCLE";
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item2
	{
		side="EAST";
		class Vehicles
		{
			items=2;
			class Item0
			{
				position[]={1981.8185,2.1371875,3509.9063};
				azimut=350;
				id=6;
				side="EAST";
				vehicle="O_Soldier_GL_F";
				leader=1;
				rank="CORPORAL";
				skill=0.60000002;
			};
			class Item1
			{
				position[]={1986.4044,2.2830451,3511.5293};
				azimut=350;
				id=7;
				side="EAST";
				vehicle="O_soldier_M_F";
				rank="CORPORAL";
				skill=0.60000002;
			};
		};
	};
	class Item3
	{
		side="EAST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1874.0165,-0.009617921,3533.02};
				azimut=259.08057;
				offsetY=2;
				id=8;
				side="EAST";
				vehicle="O_soldier_repair_F";
				leader=1;
				rank="CORPORAL";
				skill=0.60000002;
			};
		};
	};
	class Item4
	{
		side="EAST";
		class Vehicles
		{
			items=4;
			class Item0
			{
				position[]={2457.0637,67.010765,3850.6343};
				azimut=-184.11348;
				id=9;
				side="EAST";
				vehicle="O_soldier_TL_F";
				leader=1;
				rank="SERGEANT";
				skill=0.46666664;
			};
			class Item1
			{
				position[]={2453.9587,62.992702,3856.978};
				azimut=-184.11348;
				id=10;
				side="EAST";
				vehicle="O_soldier_AR_F";
				rank="CORPORAL";
				skill=0.33333331;
			};
			class Item2
			{
				position[]={2451.9639,63.10194,3856.8335};
				azimut=-184.11348;
				id=11;
				side="EAST";
				vehicle="O_soldier_GL_F";
				skill=0.2;
			};
			class Item3
			{
				position[]={2449.9683,63.187038,3856.6907};
				azimut=-184.11348;
				id=12;
				side="EAST";
				vehicle="O_soldier_F";
				skill=0.2;
			};
		};
		class Waypoints
		{
			items=5;
			class Item0
			{
				position[]={2377.7288,21.522482,3700.2061};
				combatMode="WHITE";
				formation="COLUMN";
				speed="FULL";
				combat="AWARE";
				synchronizations[]={5};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=1;
			};
			class Item1
			{
				position[]={2233.8618,20.655478,3660.9883};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={2087.7434,8.0132627,3600.168};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item3
			{
				position[]={1926.5133,2.6639793,3566.3999};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item4
			{
				position[]={1963.9988,2.803756,3523.5};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item5
	{
		side="EAST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1865.9226,-0.024587613,3531.2104};
				azimut=-36.124245;
				id=13;
				side="EAST";
				vehicle="O_SpeedBoat";
				leader=1;
				skill=0.60000002;
				text="boat";
				syncId=0;
				synchronizations[]={0};
			};
		};
		class Waypoints
		{
			items=7;
			class Item0
			{
				position[]={1865.9226,-0.024587613,3531.2104};
				id=13;
				speed="LIMITED";
				synchronizations[]={6};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=2;
			};
			class Item1
			{
				position[]={1783.9711,-0.0038003719,3567.1885};
				speed="NORMAL";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={1231.5458,0.0035642982,4987.4639};
				speed="FULL";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item3
			{
				position[]={1236.1661,0.51258707,5090.8315};
				speed="LIMITED";
				synchronizations[]={7};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=3;
			};
			class Item4
			{
				position[]={1303.4379,-0.0036165055,4298.4111};
				speed="FULL";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item5
			{
				position[]={1819.403,0.5222401,3518.313};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item6
			{
				position[]={1916.7189,2.1982858,3512.0166};
				type="GETOUT";
				speed="NORMAL";
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item6
	{
		side="EAST";
		class Vehicles
		{
			items=6;
			class Item0
			{
				position[]={1801.6864,0.13075128,3504.4534};
				azimut=-144.54851;
				special="NONE";
				id=14;
				side="EAST";
				vehicle="O_diver_F";
				leader=1;
				skill=0.60000002;
				text="diver6";
				init="this moveInCargo boat;";
			};
			class Item1
			{
				position[]={1811.2617,-0.26500392,3492.804};
				azimut=236.05351;
				special="NONE";
				id=15;
				side="EAST";
				vehicle="O_diver_F";
				skill=0.60000002;
				text="diver5";
				init="this moveInCargo boat;";
			};
			class Item2
			{
				position[]={1819.5465,0.050851136,3491.4917};
				azimut=236.05351;
				special="NONE";
				id=16;
				side="EAST";
				vehicle="O_diver_F";
				skill=0.60000002;
				text="diver4";
				init="this moveInCargo boat;";
			};
			class Item3
			{
				position[]={1824.2444,0.48087001,3481.2683};
				azimut=236.05351;
				special="NONE";
				id=17;
				side="EAST";
				vehicle="O_diver_F";
				skill=0.60000002;
				text="diver3";
				init="this moveInCargo boat;";
			};
			class Item4
			{
				position[]={1835.6976,0.067336112,3472.4717};
				azimut=236.05351;
				special="NONE";
				id=18;
				side="EAST";
				vehicle="O_diver_F";
				skill=0.60000002;
				text="diver2";
				init="this moveInCargo boat;";
			};
			class Item5
			{
				position[]={1821.1941,-0.25379911,3458.3557};
				azimut=-87.641502;
				special="NONE";
				id=19;
				side="EAST";
				vehicle="O_diver_F";
				player="PLAYER COMMANDER";
				skill=0.60000002;
				text="diver1";
				init="this moveInCargo boat;";
			};
		};
		class Waypoints
		{
			items=1;
			class Item0
			{
				position[]={1885.8241,0.019326538,6758.6968};
				id=20;
				type="SAD";
				synchronizations[]={7};
				class Effects
				{
				};
				showWP="NEVER";
				syncId=4;
			};
		};
	};
	class Item7
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={1885.8241,0.019326538,6758.6968};
				azimut=-171.668;
				special="NONE";
				id=20;
				side="WEST";
				vehicle="B_Assaultboat";
				leader=1;
				skill=0.60000002;
				text="float";
			};
		};
		class Waypoints
		{
			items=3;
			class Item0
			{
				position[]={1368.0165,-0.20660877,5687.0015};
				speed="FULL";
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item1
			{
				position[]={1301.2618,-0.67637229,4383.1143};
				class Effects
				{
				};
				showWP="NEVER";
			};
			class Item2
			{
				position[]={1686.7587,0.047963798,3577.1865};
				class Effects
				{
				};
				showWP="NEVER";
			};
		};
	};
	class Item8
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={2048.4146,0.49470675,6611.5098};
				azimut=-171.668;
				special="NONE";
				id=21;
				side="WEST";
				vehicle="B_diver_TL_F";
				leader=1;
				skill=0.60000002;
				init="this moveInCargo float;";
			};
		};
	};
};
class Vehicles
{
	items=7;
	class Item0
	{
		position[]={2788.9456,-0.063522726,6092.1914};
		azimut=237.18201;
		id=22;
		side="EMPTY";
		vehicle="B_Assaultboat";
		skill=0.60000002;
	};
	class Item1
	{
		position[]={2829.439,1.9265454,6098.4707};
		azimut=202.11212;
		id=23;
		side="EMPTY";
		vehicle="B_supplyCrate_F";
		skill=0.60000002;
		init="nul = [this] execVM ""fillCrate.sqf"";";
	};
	class Item2
	{
		position[]={1932.7278,3.177007,3574.4258};
		azimut=418.13599;
		id=24;
		side="EMPTY";
		vehicle="O_Galkin_GMG_F";
		leader=1;
		skill=0.60000002;
		fuel=0;
		ammo=0;
	};
	class Item3
	{
		position[]={1871.6401,-0.0015267505,3546.3481};
		azimut=323.811;
		id=25;
		side="EMPTY";
		vehicle="O_SpeedBoat";
		leader=1;
		skill=0.60000002;
		fuel=0;
		ammo=0;
	};
	class Item4
	{
		position[]={1979.1678,2.6216497,3527.8477};
		azimut=227.789;
		id=26;
		side="EMPTY";
		vehicle="O_Ka60_F";
		leader=1;
		skill=0.60000002;
		fuel=0;
		ammo=0;
	};
	class Item5
	{
		position[]={2393.7371,22.047985,3693.6421};
		azimut=358.81021;
		id=27;
		side="EMPTY";
		vehicle="B_MH9_F";
		skill=0.60000002;
	};
	class Item6
	{
		position[]={2832.418,1.932373,6095.6387};
		azimut=244.541;
		id=28;
		side="EMPTY";
		vehicle="B_supplyCrate_F";
		skill=0.60000002;
		init="nul = [this] execVM ""fillPacks.sqf"";";
	};
};
class Markers
{
	items=9;
	class Item0
	{
		position[]={1980.3436,2.5323389,3524.3237};
		name="Camp";
		text="Camp ennemi";
		type="mil_objective";
		colorName="ColorRed";
	};
	class Item1
	{
		position[]={1932.7703,3.177865,3574.4263};
		name="Car";
		text="Vehicule";
		type="mil_destroy";
		colorName="ColorRed";
	};
	class Item2
	{
		position[]={1870.5812,-0.0078341775,3543.2471};
		name="Boat";
		text="Boat";
		type="mil_destroy";
		colorName="ColorRed";
	};
	class Item3
	{
		position[]={2264.5386,-0.02705422,6878.8521};
		name="Wpt 1";
		text="Wpt 1";
		type="waypoint";
		colorName="ColorBlue";
	};
	class Item4
	{
		position[]={1328.0911,0.32986084,5528.6245};
		name="Wpt 2";
		text="Wpt 2";
		type="waypoint";
		colorName="ColorBlue";
	};
	class Item5
	{
		position[]={1539.1824,-0.32339329,3324.2783};
		name="Wpt 3";
		text="Wpt 3";
		type="waypoint";
		colorName="ColorBlue";
		angle=27.119473;
	};
	class Item6
	{
		position[]={1836.1984,0.038895499,3672.9741};
		name="Get out";
		text="Get out";
		type="hd_pickup";
		colorName="ColorBlue";
	};
	class Item7
	{
		position[]={1790.1793,0.12124969,3608.3271};
		name="Inf";
		text="Infiltartion";
		type="mil_arrow2";
		colorName="ColorBlue";
		angle=156.23428;
	};
	class Item8
	{
		position[]={2393.677,22.236534,3694.897};
		name="Extraction";
		text="Point d'extraction";
		type="mil_end";
		colorName="ColorBlue";
	};
};
class Sensors
{
	items=4;
	class Item0
	{
		position[]={2125.4954,8.6733751,3615.2949};
		b=500;
		angle=161.717;
		rectangular=1;
		activationBy="WEST";
		interruptable=1;
		age="UNKNOWN";
		class Effects
		{
		};
		synchronizations[]={1};
		syncId=5;
	};
	class Item1
	{
		position[]={2296.4153,23.208561,3681.4497};
		b=500;
		angle=159.675;
		rectangular=1;
		activationBy="EAST";
		interruptable=1;
		age="UNKNOWN";
		class Effects
		{
			track="Track03_OnTheRoad";
			titleEffect="BLACK IN";
		};
	};
	class Item2
	{
		position[]={1850.1208,-0.57310843,6625.5947};
		a=500;
		rectangular=1;
		activationBy="WEST";
		interruptable=1;
		age="UNKNOWN";
		class Effects
		{
			track="Track02_SolarPower";
		};
		synchronizations[]={2};
		syncId=6;
	};
	class Item3
	{
		position[]={1235.4937,0.28254503,5089.9585};
		a=400;
		b=400;
		activationBy="WEST";
		interruptable=1;
		age="UNKNOWN";
		expActiv="diver1 action [""eject"", boat];diver2 action [""eject"", boat];diver3 action [""eject"", boat];diver4 action [""eject"", boat];diver5 action [""eject"", boat];diver6 action [""eject"", boat];";
		class Effects
		{
			track="Track04_Underwater1";
		};
		synchronizations[]={3,4};
		syncId=7;
	};
};
};
class Intro
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=8588968;
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;
};
};
class OutroWin
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=2653925;
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;
};
};
class OutroLoose
{
addOns[]=
{
	"a3_map_stratis"
};
addOnsAuto[]=
{
	"a3_map_stratis"
};
randomSeed=746493;
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;
};
};

Thanks and regards.

---------- Post added at 02:36 ---------- Previous post was at 02:04 ----------

PS: May be that the game is not sufficiently advanced to do that this type of task...

---------- Post added at 03:38 ---------- Previous post was at 02:36 ----------

Some news: i have try to add a script but the result is catastrophic, the boat stop his course at the first waypoint... i'm afraid that will be not possible in the ALPHA...

Edited by Braker

Share this post


Link to post
Share on other sites

Thx, I will take a look.

---------- Post added at 07:02 ---------- Previous post was at 07:00 ----------

Anyone know where i can find a template?

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
Sign in to follow this  

×