getWeaponSway: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |p3= |PARAMETER3= |p3= |PARAMETER4= |p3= |PARAMETER5= |p3= |PARAMETER6=" to "")
mNo edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________
 
|arma3 |Game name=
|game1= arma3
|1.62|Game Version=
|version1= 1.62
|arg=  |Multiplayer Arguments=
 
|eff=  |Multiplayer Effects=
|gr1= Stamina System
____________________________________________________________________________________________
 
| Returns current size of weapon sway of a given unit, in radians |DESCRIPTION=
|gr2= Weapons
____________________________________________________________________________________________
 
| [[getWeaponSway]] unit |SYNTAX=
|descr= Returns current size of weapon sway of a given unit, in [[rad|radians]].
|p1= unit: [[Object]] |PARAMETER1=
 
|p2=  |PARAMETER2=
|s1= [[getWeaponSway]] unit
| [[Number]]: weapon sway |RETURNVALUE=
 
|x1= _sway = [[getWeaponSway]] [[player]]; |EXAMPLE1=
|p1= unit: [[Object]]
| - |SEEALSO=
}}


<dl class='command_description'>
|r1= [[Number]] - weapon sway
<!-- BEGIN Note Section -->
<!-- For example:
<dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd>
<dt class='note'>'''[[User:User Name|User Name]]'''</dt>
<dd class='note'>This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { hint: Leave it here for others to read; };</code></dd>
-->
<!-- END Note Section -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
|x1= <sqf>_sway = getWeaponSway player;</sqf>
<!-- Appropriate categories go here -->


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|seealso= [[weaponInertia]] [[getCustomAimCoef]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}

Latest revision as of 10:15, 28 September 2023

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 getCustomAimCoef

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