---
name: "forceFollowRoad"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "1.64"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/forceFollowRoad
revid: 346816
updated: 2023-08-05T12:44:00Z
---

# forceFollowRoad

*Command · Unit Control · Arma 3 v1.64*

## Description

Forces the vehicle to stay on road.

## Syntax

```sqf
vehicle forceFollowRoad state
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - vehicle
- `state`: [Boolean](../topics/Boolean.md) - true: Force on road, false: default behaviour

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

## Examples

### Example 1

```sqf
car forceFollowRoad true;
```

## See also

[setConvoySeparation](../commands/setConvoySeparation.md) · [limitSpeed](../commands/limitSpeed.md) · [setDriveOnPath](../commands/setDriveOnPath.md) · [useAISteeringComponent](../commands/useAISteeringComponent.md)

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