getWeaponSway: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 9: Line 9:
|gr2= Weapons
|gr2= Weapons


| Returns current size of weapon sway of a given unit, in [[rad|radians]].
|descr= Returns current size of weapon sway of a given unit, in [[rad|radians]].


|s1=  [[getWeaponSway]] unit
|s1=  [[getWeaponSway]] unit

Revision as of 22:06, 13 June 2021

Hover & click on the images for description

Description

Description:
Returns current size of weapon sway of a given unit, in radians.
Groups:
Stamina SystemWeapons

Syntax

Syntax:
getWeaponSway unit
Parameters:
unit: Object
Return Value:
Number: weapon sway

Examples

Example 1:
_sway = getWeaponSway player;

Additional Information

See also:
weaponInertia

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note