---
name: "getWeaponSway"
type: command
status: ok
groups: ["Stamina System", "Weapons"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getWeaponSway
revid: 376211
updated: 2025-09-15T15:00:52Z
---

# getWeaponSway

*Command · Stamina System, Weapons · Arma 3 v1.62*

## Description

Returns current size of weapon sway of a given unit, in [radians](../commands/rad.md). This command may still return a value greater 0 even if sway was effectively set to 0 with `player setCustomAimCoef 0;`.

## Syntax

```sqf
getWeaponSway unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md) - weapon sway

## Examples

### Example 1

```sqf
_sway = getWeaponSway player;
```

## See also

[weaponInertia](../commands/weaponInertia.md) · [getCustomAimCoef](../commands/getCustomAimCoef.md)

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