Summary
car towing actions
a skyhook action
both have proper working phyics (not connected to the visual rope)
visual steel cable (still working on its phyics and visuals)
Description
The Y and Z axes had a domestic dispute, and we had to negotiate a peace treaty so your trucks don't get yeeted into low earth orbit.Do not touch the math. Just follow these simple steps to add the towing and skyhook actions to your vehicles and objects
etup 1: The Tow Rope (Truck-to-Car)
Note: The Tow Rope action and its network manager go on the vehicle doing the pulling (e.g., the Ural/Tow Truck).
Open your Towing Vehicle's prefab (.et file) in the Enfusion Workbench.
CRUCIAL MULTIPLAYER STEP: Look at the Object Properties/Entity Inspector, click Add Component, and search for OAM_TowManagerComponent. Add this to the truck. If you skip this, the rope will not sync in multiplayer and the action will error out!
Next, find or add the ActionsManagerComponent on that same truck.
Under the action lists (usually additionalActions), click the + icon to add a new action.
Search for and select OAM_ToggleTowRopeAction.
Save and compile.
How to use it in-game: Back your tow truck up so the rear bumper is within 12 meters of the target car's front bumper. Look at the back of your truck, use the scroll wheel, and click "Attach Tow Rope". The script will automatically find the car and the server will distribute the visual rope to all players.
Note: The Skyhook action goes on the PAYLOAD (the crate, the car, the tank), NOT the helicopter!
Open your Payload's prefab (.et file) in the Workbench.
Find or add the ActionsManagerComponent.
Add a new action to the list.
Search for and select OAM_SkyhookAction.
Save and compile. How to use it in-game: Have your buddy hover the helicopter directly over the payload (they must be within exactly 15 meters of the roof of the object). Walk up to the payload on the ground, use the scroll wheel, and click "Attach Skyhook to Heli". The rope will drop from the chopper's belly and lock onto the cargo.
License
Arma Public License (APL)