setAnimSpeedCoef: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|arma3 | |arma3 | ||
|1.54 | |1.54 | ||
|gr1= Animations | |gr1= Animations | ||
|gr2= Stamina System | |gr2= Stamina System | ||
| 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.) | Doesn't affect upper body animations (reloading, etc.) | ||
| unit [[setAnimSpeedCoef]] coef | | unit [[setAnimSpeedCoef]] coef | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= coef: [[Number]] | |p2= coef: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[setAnimSpeedCoef]] 0.75;</code> | |x1= <code>[[player]] [[setAnimSpeedCoef]] 0.75;</code> | ||
| [[Arma 3 Stamina]], [[getAnimSpeedCoef]], [[setAccTime]] | | [[Arma 3 Stamina]], [[getAnimSpeedCoef]], [[setAccTime]] | ||
| |= MP Behaviour | | |= MP Behaviour |
Revision as of 11:02, 18 January 2021
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:
- AnimationsStamina System
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)
- Posted on November 14, 2019 - 14:09 (UTC)
- nomisum
- Must be executed on all clients to work properly in MP (otherwise only movement speed is adjusted, not animation itself)