weaponInertia: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
mNo edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________
 
|arma3 |= Game
|game1= arma3
|1.48|Game Version=
|version1= 1.48
|arg=  |Multiplayer Arguments=
 
|eff=  |Multiplayer Effects=
|gr1= Weapons
____________________________________________________________________________________________
 
| Returns current rate of how much the weapon view is distorted because of quick aiming |DESCRIPTION=
|descr= Returns current rate of how much the weapon view is distorted because of quick aiming.
____________________________________________________________________________________________
 
| [[weaponInertia]] unit |SYNTAX=
|s1= [[weaponInertia]] unit
|p1= unit: [[Object]] |PARAMETER1=
 
|p2=  |PARAMETER2=
|p1= unit: [[Object]]
|p3=  |PARAMETER3=
|p3=  |PARAMETER4=
|p3=  |PARAMETER5=
|p3=  |PARAMETER6=
| [[Array]] |RETURNVALUE=
|x1= _inertia = [[weaponInertia]] [[player]]; |EXAMPLE1=
| - |SEEALSO=
}}


<dl class='command_description'>
|r1= [[Array]] of [[Number]]s in format [x_sway, y_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>_inertia = weaponInertia player; //[-0.0126307,0.038023]</sqf>
<!-- Appropriate categories go here -->


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

Latest revision as of 10:41, 28 September 2023

Hover & click on the images for description

Description

Description:
Returns current rate of how much the weapon view is distorted because of quick aiming.
Groups:
Weapons

Syntax

Syntax:
weaponInertia unit
Parameters:
unit: Object
Return Value:
Array of Numbers in format [x_sway, y_sway]

Examples

Example 1:
_inertia = weaponInertia player; //[-0.0126307,0.038023]

Additional Information

See also:
getWeaponSway

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