setAnimSpeedCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 6: Line 6:


| Sets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).<br />
| Sets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).<br />
Doesn't affect upper body animations (reloading, etc.) |= Description
Doesn't affect upper body animations (reloading, etc.) |DESCRIPTION=


| unit [[setAnimSpeedCoef]] coef |= Syntax
| unit [[setAnimSpeedCoef]] coef |SYNTAX=


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |PARAMETER1=


|p2= coef: [[Number]] |= Parameter 2
|p2= coef: [[Number]] |PARAMETER2=


| Nothing |= Return value
| Nothing |RETURNVALUE=


|x1= <code>[[player]] [[setAnimSpeedCoef]] 0.75;</code>|= Example 1
|x1= <code>[[player]] [[setAnimSpeedCoef]] 0.75;</code>|EXAMPLE1=


| [[Arma 3 Stamina]], [[getAnimSpeedCoef]], [[setAccTime]] |= See also
| [[Arma 3 Stamina]], [[getAnimSpeedCoef]], [[setAccTime]] |SEEALSO=


|  |= MP Behaviour
|  |= MP Behaviour

Revision as of 14:46, 7 April 2019

Hover & click on the images for description

Description

Description:
Sets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).
Doesn't affect upper body animations (reloading, etc.)
Groups:
Uncategorised

Syntax

Syntax:
unit setAnimSpeedCoef coef
Parameters:
unit: Object
coef: Number
Return Value:
Nothing

Examples

Example 1:
player setAnimSpeedCoef 0.75;

Additional Information

See also:
Arma 3 StaminagetAnimSpeedCoefsetAccTime

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

Bottom Section

Notes

Posted on November 14, 2016 - 03:30
Demellion
Increasing animation speed of a unit also increases its run/walk speed (thanks to Killzone Kid)
Posted on November 27, 2016 - 02:02
Demellion
Setting negative values with this makes animations act in reverse or make you stuck sliding in unknown directions.
Posted on November 7, 2018 - 08:39 (UTC)
DrSova
Didn't work on animals (A3 1.84.144923)