Arma 3 Scripting

getWeaponSway

  • Arma 3 v1.62

Command · also in Weapons · Markdown · JSON · original wiki page

Description

Returns current size of weapon sway of a given unit, in radians. This command may still return a value greater 0 even if sway was effectively set to 0 with player setCustomAimCoef 0;.

Syntax

getWeaponSway unit

Parameters:

Returns: Number - weapon sway

Examples

Example 1

_sway = getWeaponSway player;

See also

weaponInertia · getCustomAimCoef