Jump to content
Gorge92

AI get in a totally different vehicle

Recommended Posts

Hi Everybody!

I making a mission and I have a "small", but very-very annoying bug. 

Here is the problem:
The Player and Guy1 (they are not in group, totally independent from each other) board in a boat, ride to the destination. I put here a Transport Unload and a Get Out wp with sync, it's work fine. After that I want to the Player get in a car as a driver and Guy1 get in as a passenger.

I made a Get In wp (on the car) and then a Load wp (near the prev. wp) for the Player, and a Get In wp for Guy1 (Player Load and Guy1 Get In is synced). But Guy1 run back to the boat and board as driver.

 

I tried to remove the Load wp and modify the Get In to Load wp, but have the same bug. If I remove the boat and put them near the car, everything works fine. I tried lock the boat, but Guy1 still can use it, tried the assignascargo, moveincargo commands, but not works.
Please if you have any idea, help me.

Thanks!

Share this post


Link to post
Share on other sites

Hi, let's try the following:

Guy1 waypoints:

0:GET IN -> 1:GET OUT -> 2:MOVE -> 3:GET IN

Player waypoints:

0:GET IN -> 1:GET OUT -> 2:GET IN

Boat waypoints:

0:MOVE -> 1:LOAD -> 2:MOVE -> 3:TRANSPORT UNLOAD

 

Guy1's 0 is synched to Boat's 0; Player's 0 is synched to Boat's 0

Guy1's 2 is synched to Player's 2

 

https://i.imgur.com/FVHSKOl.png

 

Here is a mission.sqm for Desert Island which is setup as outline above:

Spoiler



version=11;
class Mission
{
	randomSeed=16458243;
	class Intel
	{
	};
	class Groups
	{
		items=3;
		class Item0
		{
			side="WEST";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={11791.606445,1.089840,4215.969238};
					azimut=90.000000;
					id=2;
					side="WEST";
					vehicle="BoatW";
					leader=1;
					skill=0.600000;
				};
			};
			class Waypoints
			{
				items=4;
				class Item0
				{
					position[]={11798.429688,1.089840,4215.445801};
					synchronizations[]={0,1};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item1
				{
					position[]={11801.704102,1.089840,4215.274414};
					type="LOAD";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item2
				{
					position[]={11905.302734,1.486964,4214.310059};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item3
				{
					position[]={11814.008789,-5.858207,4257.095703};
					type="TR UNLOAD";
					class Effects
					{
					};
					showWP="NEVER";
				};
			};
		};
		class Item1
		{
			side="WEST";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={11746.112305,4.590271,4225.673828};
					azimut=90.000000;
					id=1;
					side="WEST";
					vehicle="SoldierWB";
					leader=1;
					skill=0.600000;
					text="Guy1";
				};
			};
			class Waypoints
			{
				items=4;
				class Item0
				{
					position[]={11766.333008,1.846181,4226.644531};
					type="GETIN";
					synchronizations[]={0};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item1
				{
					position[]={11755.772461,2.993905,4270.200684};
					type="GETOUT";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item2
				{
					position[]={11725.703125,7.682080,4268.393066};
					synchronizations[]={2};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item3
				{
					position[]={11725.720703,7.517170,4259.798828};
					id=3;
					type="GETIN";
					class Effects
					{
					};
					showWP="NEVER";
				};
			};
		};
		class Item2
		{
			side="WEST";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={11754.422852,3.721836,4215.695801};
					azimut=90.000000;
					id=0;
					side="WEST";
					vehicle="SoldierWB";
					player="PLAYER COMMANDER";
					leader=1;
					skill=0.600000;
				};
			};
			class Waypoints
			{
				items=3;
				class Item0
				{
					position[]={11769.617188,1.610831,4217.136719};
					type="GETIN";
					synchronizations[]={1};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item1
				{
					position[]={11754.916992,2.950414,4260.170898};
					type="GETOUT";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item2
				{
					position[]={11725.720703,7.517170,4259.798828};
					id=3;
					type="GETIN";
					synchronizations[]={2};
					class Effects
					{
					};
					showWP="NEVER";
				};
			};
		};
	};
	class Vehicles
	{
		items=1;
		class Item0
		{
			position[]={11725.720703,7.517170,4259.798828};
			azimut=270.000000;
			id=3;
			side="EMPTY";
			vehicle="Jeep";
			leader=1;
			skill=0.600000;
		};
	};
};
class Intro
{
	randomSeed=12173827;
	class Intel
	{
	};
};
class OutroWin
{
	randomSeed=11791363;
	class Intel
	{
	};
};
class OutroLoose
{
	randomSeed=936451;
	class Intel
	{
	};
};


 

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you for your answer! I forget to mention the boat is empty. So the Player is board as the driver, Guy1 the passenger and I want this at the car too.
I made a mission, if you try it, you can see the bug:
 

Spoiler

version=11;
class Mission
{
    randomSeed=10949123;
    class Intel
    {
    };
    class Groups
    {
        items=2;
        class Item0
        {
            side="EAST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={8107.665039,4.952938,5717.839355};
                    id=3;
                    side="EAST";
                    vehicle="SoldierEB";
                    leader=1;
                    lock="UNLOCKED";
                    rank="COLONEL";
                    skill=0.700000;
                };
            };
            class Waypoints
            {
                items=5;
                class Item0
                {
                    position[]={8101.503906,4.948665,5717.560059};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item1
                {
                    position[]={8096.395996,4.325767,5717.553223};
                    type="GETIN";
                    synchronizations[]={0};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item2
                {
                    position[]={7659.133301,4.706048,5851.548340};
                    type="GETOUT";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item3
                {
                    position[]={7623.888672,8.507203,5879.798340};
                    synchronizations[]={2};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item4
                {
                    position[]={7601.376953,10.516785,5885.610352};
                    type="GETIN";
                    synchronizations[]={1};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
            };
        };
        class Item1
        {
            side="EAST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={8107.812500,4.877373,5712.900391};
                    azimut=-77.326401;
                    id=0;
                    side="EAST";
                    vehicle="SoldierEB";
                    player="PLAYER COMMANDER";
                    leader=1;
                    skill=0.600000;
                };
            };
            class Waypoints
            {
                items=7;
                class Item0
                {
                    position[]={8101.438965,4.886028,5713.465820};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item1
                {
                    position[]={8074.820313,1.586966,5713.631348};
                    id=1;
                    type="GETIN";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item2
                {
                    position[]={8075.314941,1.586966,5712.095703};
                    type="LOAD";
                    synchronizations[]={0};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item3
                {
                    position[]={7657.457520,4.560808,5845.828613};
                    type="TR UNLOAD";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item4
                {
                    position[]={7622.805176,8.058105,5875.382813};
                    synchronizations[]={2};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item5
                {
                    position[]={7600.661133,10.328498,5881.777832};
                    id=2;
                    type="GETIN";
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
                class Item6
                {
                    position[]={7600.656738,10.390302,5882.666992};
                    type="LOAD";
                    synchronizations[]={1};
                    class Effects
                    {
                    };
                    showWP="NEVER";
                };
            };
        };
    };
    class Vehicles
    {
        items=2;
        class Item0
        {
            position[]={8074.820313,1.586966,5713.631348};
            azimut=-210.054993;
            id=1;
            side="EMPTY";
            vehicle="BoatE";
            lock="UNLOCKED";
            skill=1.000000;
        };
        class Item1
        {
            position[]={7600.661133,10.328498,5881.777832};
            id=2;
            side="EMPTY";
            vehicle="SkodaGreen";
            skill=0.600000;
        };
    };
};
class Intro
{
    randomSeed=9464835;
    class Intel
    {
    };
};
class OutroWin
{
    randomSeed=14176771;
    class Intel
    {
    };
};
class OutroLoose
{
    randomSeed=497667;
    class Intel
    {
    };
};

 

Share this post


Link to post
Share on other sites

Ok that's an annoying result in your example. I have deleted the other guy's GET IN waypoint for the car and added it again so that it is directly on top of the car (press and hold shift, then hover over the car until the vehicle's name is displayed, then add the waypoint). With this update the guy boards the car instead of the boat.

Spoiler

version=11;
class Mission
{
	randomSeed=10949123;
	class Intel
	{
	};
	class Groups
	{
		items=2;
		class Item0
		{
			side="EAST";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={11103.052734,3.974376,4730.005859};
					id=3;
					side="EAST";
					vehicle="SoldierEB";
					leader=1;
					lock="UNLOCKED";
					rank="COLONEL";
					skill=0.700000;
				};
			};
			class Waypoints
			{
				items=5;
				class Item0
				{
					position[]={11096.891602,3.397995,4729.726563};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item1
				{
					position[]={11091.784180,3.090104,4729.719727};
					type="GETIN";
					synchronizations[]={0};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item2
				{
					position[]={10821.414063,1.581185,4527.815430};
					type="GETOUT";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item3
				{
					position[]={10819.267578,4.398190,4506.531738};
					synchronizations[]={1};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item4
				{
					position[]={10799.514648,5.813136,4504.933594};
					id=2;
					type="GETIN";
					class Effects
					{
					};
					showWP="NEVER";
				};
			};
		};
		class Item1
		{
			side="EAST";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={11103.200195,4.055566,4725.066895};
					azimut=-77.326401;
					id=0;
					side="EAST";
					vehicle="SoldierEB";
					player="PLAYER COMMANDER";
					leader=1;
					skill=0.600000;
				};
			};
			class Waypoints
			{
				items=7;
				class Item0
				{
					position[]={11096.826172,3.445637,4725.632324};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item1
				{
					position[]={11055.220703,1.453608,4723.690430};
					id=1;
					type="GETIN";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item2
				{
					position[]={11055.715820,1.453608,4722.154785};
					type="LOAD";
					synchronizations[]={0};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item3
				{
					position[]={10821.577148,2.233718,4522.555176};
					type="TR UNLOAD";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item4
				{
					position[]={10818.183594,5.022845,4502.116211};
					synchronizations[]={1};
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item5
				{
					position[]={10799.514648,5.813136,4504.933594};
					id=2;
					type="GETIN";
					class Effects
					{
					};
					showWP="NEVER";
				};
				class Item6
				{
					position[]={10799.509766,5.701094,4505.822754};
					type="LOAD";
					class Effects
					{
					};
					showWP="NEVER";
				};
			};
		};
	};
	class Vehicles
	{
		items=2;
		class Item0
		{
			position[]={11055.220703,1.453608,4723.690430};
			azimut=-210.054993;
			id=1;
			side="EMPTY";
			vehicle="BoatE";
			lock="UNLOCKED";
			skill=1.000000;
		};
		class Item1
		{
			position[]={10799.514648,5.813136,4504.933594};
			id=2;
			side="EMPTY";
			vehicle="SkodaGreen";
			skill=0.600000;
		};
	};
};
class Intro
{
	randomSeed=9464835;
	class Intel
	{
	};
};
class OutroWin
{
	randomSeed=14176771;
	class Intel
	{
	};
};
class OutroLoose
{
	randomSeed=497667;
	class Intel
	{
	};
};

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Oh crap ... I made this yesterday in the Notepad, (matched the coords for the get in wp) loaded the mission, but didn't work. Now I did it again with your method in the editor and works fine!
Thank you zwobot! I'm really grateful!

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

×