Armed Assault Info
ArmA | ArmA 2 | ArmA 3
 

 
  Convoy creator & convoy control (v 1.6)  
No picture found for this addon. Author : DTM2801
Version : 1.6 Era : Modern Type : Misc
Size : 8 KB Demo mission : Yes
Downloads : 959 No rating for this addon.

You must register before rating items.

Included *.pbo files : Needed addons :
N/A None
 
Description :
Convoy creator & convoy control
Version: 1.5

Description:
This script wil create a convoy (configurable) and will keep monitoring all convoy vehicles for the correct distance by adjusting speed.
If the distance between convoy vehicles gets too far the forward vehicle will slowdown and eventually wait until the follower gets back
in acceptable distance.

Usage:
To make it more versatile there are 4 ways to make use of these scripts to suit your needs.

1. Convoy with default vehicles, spawns vehicles using the convoysize and default side vehicles with controlscript.
init-example:
null= [this,WEST,["convoywp1","convoywp2","convoywp3"],0,7,["HMMWV_M2","MTVR","HMMWV_M2"],[],true,false]execvm "convoy.sqf";


3. Convoy with preplaced vehicles on the map, adds vehicles to an array and assigns waypoints and controlscript.
init-example:
veh1: first vehicle nothing
veh2: null = [veh2,veh1,false] execVM "convoy_control.sqf";
veh3: null = [veh3,veh2,false] execVM "convoy_control.sqf";
veh4: null = [veh4,veh3,false] execVM "convoy_control.sqf";

and so on
(to enable/disable debug change option 3 to true/false)

- Define a route for the convoy by placing and naming markers on the map.
- Place a Game Logic on the map at the location and direction where you want the convoy to be spawned.
- Put the initstring in the initialisation field of the Game Logic and maybe change to your needs.


NOTE: ** Functions module must be placed on the map **

The included sample mission has all 4 different convoy options placed, including cargo (soldiers).

Explanation of initstring:
null= [1: objectname,2:side,[3:"nameofmarker1","nameofmarker2","nameofmarker3 "],4:convoysize,5:delay,[6:"classname1","classname2",classname3"],[7:nameofvehicle1,nameofvehicle2,nameofvehicle3],8:wpmarkers,9:debug]execvm "convoy.sqf";

1: _position : objectname spawnpoint of convoy vehicles (default: this)
2: _side : side of convoy vehicles (WEST, EAST, RESISTANCE, CIVILIAN)
3: _wparray : array of markernames used to create waypoints (have to be between "")
4: _convoysize : number of default spawned vehicles * (default: 5)
5: _delay : time between vehicle spawns, needed to prevent pile ups (default: 7)
6: _vehiclearray : array of vehicle classnames by choice, will be spawned it the order left to right (default: [])
7: _customarray : array of vehiclenames preplaced in the map (default: [])
8: _wpmarkers : turn on/off display of waypoint markers on map (true/false)
9: _debug : turn on/off debug messages (true/false)

* default side vehicle
WEST = "MTVR"
EAST = "Kamaz"
RESISTANCE = "V3S_Gue"
CIVILIAN = "UralCivil2"

convoy_control.sqf:
- To tweak the convoy behaviour change the distance (example: _backdist > 80) or forcespeed (example: forceSpeed 0).

If you any suggestions/comments to make this script work better please share your ideas.

Changes:
v1.1
- Added convoy tracking markers.
- Some code cleanup.
- Test mission cleared of external addons.

v1.2
- Added description.

v1.3
- Added vehicle names.
- Added eventhandlers.
- Added option to enable/disable waypoint map markers (found in convoy.sqf)
- Dropped vehmarkers.sqf (still looking for a way to integrate in main script).
- Updated convoy_control while parameter.

v1.4:
- Added side selection to init. (thanks zonker3210)
- Added default vehicle for 3 sides.
- Added init string checks.
- Moved waypoint markers option to init.
- Moved debug option to init.

v1.5:
- Introduced cases into the script for more flexibity.
- Added multiple ways to use the script. (see usage notes)
- Added createcenter to ensure vehicle spawns.
- Added CIVILIAN to side choices.
- some code cleanup.

v1.6:
- Added random units in cargo of spawned vehicles (thanks TRexian)
- Added optional cycle waypoint ** remember to update the existing convoy initstrings **
- Improved control script (less distance, more speed)

Todo:
- Faster formation restore after behaviour change (combat -> safe), maybe with some statuscodes.
- Optional vehicle markers.
 
Size : 8 KB
  November 14th, 2009 - 13:16   Comment (0)  

 
 
© 2007 - 2020 Armed Assault Info
Disclaimer - Info