Arma 3 Scripting

setUnitRecoilCoefficient

  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.62

Command · Markdown · JSON · original wiki page

Description

Proportionaly increase/decrease unit's recoil. Drives muzzle up with every shot when supplied positive number and down when negative. 0 cancels recoil.

Syntax

unitName setUnitRecoilCoefficient coefficient

Parameters:

Returns: Nothing

Examples

Example 1

player setUnitRecoilCoefficient 10;

See also

unitRecoilCoefficient

Community notes

Benargee

Doesnt seem to work on AI or remote controlled units. Setting the value too high, positive or negative produces some interesting recoil animations.