Vehicle Towing
Workshop Name ADAMS TOWING AND MORE
https://www.youtube.com/watch?v=990KZapN4lk
Adam's towing and more is a mod that provides the ability to tow vehicles together. The base mod provides a modified Ural and a lowboy trailer that can be used together. The intention is mostly to act as a common system that can be used for other modders to create new content.
Workshop
https://reforger.armaplatform.com/workshop/596A1344FF649B69-AdamsTowingandMore
Features
Vehicle towing.
Unlimited vehicles can be connected together and towed.
There are issues when towing more than two, such as random jerkiness.
Animation syncing
Lights
Brake
Headlight
Hazard
Blinkers
etc.
Procedural animations (signals)
Defined per vehicle
Steering tracking
For towing other vehicles that don't act as trailers.
Brake Syncing
Can be configured 0-100%
How to use
User:
Subscribe to workshop and load mod
Look for the "Lowboy" and "Ural" (with the modified hitch on the back)
Developer:
Set this mod as a dependency
Use the components ADM_TowChild and ADM_TowParent
ADM_TowParent
Receiver Type: List of common hitch receivers that exist in real life, feel free to mod the enum to add custom ones.
Joint Position: PointInfo that defines the location that the joint will attach to in local space of the entity it is applied to.
Max Attach Distance: Maximum distance a child receiver can be from the parent receiver.
Tow Signals: Signals to modify when tow state is updated. (e.g. jack stands or dolly)
Signal: Name of signal
Detached Value: Value when child is detached
Attached Value: Value when child is attached.
ADM_TowChild
Receiver Type: List of common hitch receivers that exist in real life, feel free to mod the enum to add custom ones.
Joint Position: PointInfo that defines the location that the joint will attach to in local space of the entity it is applied to.
Joint Break Force: How much impulse is required to break the joint. (I assume this is in Newtons * seconds, unsure though)
Child Brake Percent: What percentage of parent vehicle brake should be applied to the child vehicle. (If 80% brake is applied to parent and this is set to 20%, the resulting braking on the child is 0.8 * 0.2 = 0.16, or 16%)
Track Steering: Should child vehicle steer towards the parent vehicle
Track Steering Strength: Scalar value that affects how much angle to steer towards parent vehicle.
Dot product result is scaled by this. I didn't bother calculating true angle since it will change per vehicle, probably easier to just scale dot product.
Synced Signals: Synced from parent to child vehicle.
Parent Signal: Name of signal on parent to reference a value
Child Signal: Name of signal on child to apply reference value to
Signal Scale: Multiplier on reference value
Signal Offset: Offset reference value by some amount
Tow Signals: Signals to modify when tow state is updated. (e.g. jack stands or dolly)
Signal: Name of signal
Detached Value: Value when child is detached
Attached Value: Value when child is attached.
For support or questions about the code: reply here, or contact me on Discord (Plato#0238)