Arma 3
787 ratings
Better Convoy
6
4
4
3
4
4
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
Updated
99.907 KB
Apr 29, 2022 @ 5:27am
May 14, 2022 @ 1:01pm
17 Change Notes ( view )

Subscribe to download
Better Convoy

Description
The main function of this mod is to compose a vehicle formation where the follower vehicles reproduce the same path of the lead vehicle, by means of the setDriveOnPath function. In this fashion, this mod seeks to avoid situations where the followers would become stuck or would simply refuse to follow, which usually arrise in a traditional column group formation.
A secondary function of the mod is to regulate the speed of the convoy. This is performed according to the vehicles' separation distances, relative speeds and the overall convoy curvature. The governing parameters are available for tuning.
The mod was tested for wheeled and tracked vehicles and it can be used on roads or off-road. This mod does not introduce any AI modifications and therefore the convoy's path and behavior may be further improved with AI driving mods.
Personally, I find that using the mod is a more robust option. However, if the lead vehicle is not able to properly pathfind it might still be necessary to adjust its waypoints.


Instructions
In the editor, you can find the module in Systems/Modules/Effects/Convoy.
First, place the convoy vehicles, including the lead vehicle, in distinct groups.
Then, decide the order of the convoy and sync each vehicle with this module in the previously decided order (i.e. the lead vehicle must be synced first).
Finally, set the waypoints for the lead vehicle and run your mission.


Scripting Implementation
If the mission maker prefers to use the script directly, then the following example is instructive.

// create the logic (alternative to placing a synchronized module named Convoy_01)
logicCenter_01 = createCenter sideLogic;
logicGroup_01 = createGroup logicCenter_01;
Convoy_01 = logicGroup_01 createUnit ["Logic", [0,0,0], [], 0, "NONE"];
Convoy_01 setVariable ["maxSpeed", 40];
Convoy_01 setVariable ["convSeparation", 35];
Convoy_01 setVariable ["stiffnessCoeff", 0.2];
Convoy_01 setVariable ["dampingCoeff", 0.6];
Convoy_01 setVariable ["curvatureCoeff", 0.3];
Convoy_01 setVariable ["stiffnessLinkCoeff", 0.1];
Convoy_01 setVariable ["pathFrequecy", 0.05];
Convoy_01 setVariable ["speedFrequecy", 0.2];
Convoy_01 setVariable ["speedModeConv", "NORMAL"];
Convoy_01 setVariable ["behaviourConv", "pushThroughContact"];
Convoy_01 setVariable ["debug", false];

// create the convoy
call{ 0 = [Convoy_01,[vehicleLead,vehicle2,vehicle3]] execVM "\nagas_Convoy\functions\fn_initConvoy.sqf" };

// stop the convoy without erasing its waypoints
Convoy_01 setVariable ["maxSpeed", 0];
sleep 5; // wait for all vehicles to stop

// disband the convoy
vehicleLead setVariable ["convoy_terminate", true];
sleep .5; // wait for script to finish

// create a new convoy with only the first two vehicles
call{ 0 = [Convoy_01,[vehicleLead,vehicle2]] execVM "\nagas_Convoy\functions\fn_initConvoy.sqf" };

// resume
Convoy_01 setVariable ["maxSpeed", 40];
Popular Discussions View All (3)
32
Apr 16 @ 10:52am
BUGS/ ISSUES
DapperShark
5
4
Jun 14, 2023 @ 1:51pm
How to Use 'Better Convoy'
DapperShark
0
Jan 30, 2023 @ 8:07pm
Disbanding Convey
The Ultramarine
188 Comments
Machine Gun Kelly Mar 31 @ 8:43am 
@ALL - I have said on here MANY TIMES, there has yet been a FULLY WORKING CONVOY SYSTEM!

I have played A3 since the Alpha, and there has never been a 100% working convoy script/mod.

This one is no different.

Oh, SOME things will work with ALL OF THEM, it is just NONE OF THEM WORK 100%!

Sadly. this mod, the one that this one is built off of, and others, simply just do not work completely.


All you will be doing is wasting your time...you will see...

Just read the reviews here... ;)


:)
Grand Knight Mar 30 @ 1:54pm 
Anyone else notice when the ai has supplies in the trucks they wont move?
NoNaCl Mar 28 @ 8:25am 
Does the ai move without you driving because if so it doesnt work for me
Igzilee Feb 18 @ 10:42pm 
I can't figure out how to have the convoy disband. I tried the script in the description in a few different ways but nothing worked. So now I have a convoy that functions great but can't drop off troops that aren't in the lead vehicle.
_mickey_ Feb 17 @ 2:51pm 
Now this mod works for me again, it's some kind of magic! Probably other mods are influencing. For example, I use LAMBS, which was also updated some time ago. In general, everything seems to be normal now
German Bastard Feb 10 @ 1:47pm 
this mod dont work dog.
WirtsLegs Jan 22 @ 12:21pm 
so seems to work reasonably well, what doesnt seem to work well is combat

often end up with the first half of the convoy slowly inching ahead while the back half stops

may be nice to have it setup so that if pushThroughContact is set to false that the entire convoy stops until the engaged elements decide its all clear and continue
Machine Gun Kelly Jan 6 @ 6:49am 
@dmxyang4 - If you do not see it, how do you know it is loaded? ;)

Not trying to be funny or mean, what you state makes no sense.

Also, this is a mod that you use when CREATING MISSIONS. You have to put 'commands' as shown above.

So, I am at a loss. For this NEVER shows up in a mission/editor - Never has.

???
dmxyang4 Jan 5 @ 3:09pm 
Better Convoy doesn't show up anymore even when subscribed and loaded in. Anyone got any help?
Machine Gun Kelly Dec 6, 2024 @ 6:26pm 
@kiba3x - While in YOUR CASE it may have worked, it is NOT 'perfect'. Put in MANY different vehicles, lots of them, have the convoy shot at, or other 'weird cases' and IT WILL FAIL!

There has NEVER been an '100% working' convoy mod. Oh, it might 'do this', or 'do that', but they will NOT work with EVERY VEHICLE IN EVERY CIRCUMSTANCE.

Do NOT be fooled!

With THIS MOD, I have had it fail and it failed also using the ORIGINAL MOD too, which this mod, is an 'updated' version of by some other author and is based off of the original mod.

The comment section is FULL of issues with this mod...AND ALL OTHERS TOO!

This is an ARMA issue sadly...

Do NOT 'get your hopes' up with this mod working ALL THE TIME - IT WILL NOT! NONE DO!

:(