---
name: "resetSubgroupDirection"
type: command
status: ok
groups: ["Groups"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/resetSubgroupDirection
revid: 321292
updated: 2022-05-13T19:08:11Z
---

# resetSubgroupDirection

*Command · Groups · Arma 3 v0.50*

## Description

Sets [formation direction](../commands/formationDirection.md) of a group relative to current direction of the group leader. The group units will change their positions to form new formation if new formation direction is different (approx +/- 15 degrees). Does the same as:

```sqf
_grp setFormDir getDir leader _grp;
```

## Syntax

```sqf
resetSubgroupDirection unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - any member of the [Group](../topics/Group.md)

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

## Examples

### Example 1

```sqf
resetSubgroupDirection myUnit;
```

## See also

[setFormDir](../commands/setFormDir.md) · [group](../commands/group.md) · [leader](../commands/leader.md) · [formation](../commands/formation.md) · [formationLeader](../commands/formationLeader.md) · [formationMembers](../commands/formationMembers.md) · [formationTask](../commands/formationTask.md) · [formationDirection](../commands/formationDirection.md) · [formationPosition](../commands/formationPosition.md)

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