---
name: "setTowParent"
type: command
status: ok
groups: ["PhysX", "Ropes and Sling Loading"]
arma3_since: "2.06"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setTowParent
revid: 373896
updated: 2025-06-26T11:04:54Z
---

# setTowParent

*Command · PhysX, Ropes and Sling Loading · Arma 3 v2.06*

Locality: arguments **local** · effect **global**

## Description

| Simulation | Towable | Can Tow |
|---|---|---|
| CarX | ✓ | ✓ |
| TankX | ✗ | ✓ |
| AirplaneX | ✗ | ✗ |
| BoatX | ✗ | ✗ |

Allows a vehicle to be towed by another. This loosens the towed vehicle's brakes and turns its steering wheels toward the towing vehicle.
Supposed to be used together with a rope connecting both vehicles.

## Syntax

```sqf
towedVehicle setTowParent towingVehicle
```

**Parameters:**

- `towedVehicle`: [Object](../topics/Object.md) - vehicle of type CarX (no tanks, no aircrafts, no boats)
- `towingVehicle`: [Object](../topics/Object.md) - vehicle of type CarX or TankX (no aircrafts, no boats)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
{ moveOut _x } forEach crew _towedVehicle;    // make sure nobody is in the towed vehicle
_towedVehicle lock true;                    // make sure everybody stays out of it
ropeCreate [_bobcat, [0,-5,0], _towedVehicle, [0,2,0]];
_towedVehicle setTowParent _bobcat;
```

## Multiplayer

> [!WARNING]
> If a [player](../commands/player.md) enters the towing vehicle, the towed one will try to change its locality to be local to that [player](../commands/player.md). This might be problematic if there is another [player](../commands/player.md) already in the towed vehicle. It is recommended to not have anyone in the towed vehicle!

## See also

[getTowParent](../commands/getTowParent.md) · [ropeCreate](../commands/ropeCreate.md)

<sub>Source: [BI Community Wiki — setTowParent](https://community.bistudio.com/wiki/setTowParent) (revision 373896).</sub>
