setAnimSpeedCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


|arma3|Game name=
|game1= arma3
|version1= 1.54


|1.54|Game version=
|gr1= Animations


|gr1= Animations |GROUP1=
|gr2= Stamina System


|gr2= Stamina System |GROUP2=
|arg= global


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


| unit [[setAnimSpeedCoef]] coef |SYNTAX=
|descr= 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.)


|p1= unit: [[Object]] |PARAMETER1=
|s1= unit [[setAnimSpeedCoef]] coef


|p2= coef: [[Number]] |PARAMETER2=
|p1= unit: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p2= coef: [[Number]]


|x1= <code>[[player]] [[setAnimSpeedCoef]] 0.75;</code>|EXAMPLE1=
|r1= [[Nothing]]


| [[Arma 3 Stamina]], [[getAnimSpeedCoef]], [[setAccTime]] |SEEALSO=
|x1= <sqf>player setAnimSpeedCoef 0.75;</sqf>


| |= MP Behaviour
|seealso= [[Arma 3: Stamina]] [[getAnimSpeedCoef]] [[setAccTime]]
}}
}}


<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on November 14, 2016 - 03:30
<dt class="note">[[User:Demellion|Demellion]]
<dd class="note">Increasing animation speed of a unit also increases its run/walk speed (thanks to [[User:Killzone_Kid|Killzone Kid]])


<dd class="notedate">Posted on November 27, 2016 - 02:02
<dt></dt>
<dt class="note">[[User:Demellion|Demellion]]
<dd class="notedate">Posted on 2016-11-14 - 03:30</dd>
<dd class="note">Setting negative values with this makes animations act in reverse or make you stuck sliding in unknown directions.
<dt class="note">[[User:Demellion|Demellion]]</dt>
<dd class="note">Increasing animation speed of a unit also increases its run/walk speed (thanks to [[User:Killzone_Kid|Killzone_Kid]])</dd>


<!-- Note Section END -->
<dt><dt>
</dl>
<dd class="notedate">Posted on 2016-11-27 - 02:02</dd>
<dt class="note">[[User:Demellion|Demellion]]</dt>
<dd class="note">Setting negative values with this makes animations act in reverse or make you stuck sliding in unknown directions.</dd>


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2018-11-07 - 08:39 (UTC)</dd>
<dd class="notedate">Posted on November 7, 2018 - 08:39 (UTC)</dd>
<dt class="note">[[User:DrSova|DrSova]]</dt>
<dt class="note">[[User:DrSova|DrSova]]</dt>
<dd class="note">
<dd class="note">Didn't work on animals (A3 1.84.144923)</dd>
Didn't work on animals (A3 1.84.144923)
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<dt><dt>
<dl class="command_description">
<dd class="notedate">Posted on 2019-11-14 - 14:09 (UTC)</dd>
<dd class="notedate">Posted on November 14, 2019 - 14:09 (UTC)</dd>
<dt class="note">[[User:nomisum|nomisum]]</dt>
<dt class="note">[[User:nomisum|nomisum]]</dt>
<dd class="note">
<dd class="note">Must be executed on all clients to work properly in MP (otherwise only movement speed is adjusted, not animation itself)</dd>
Must be executed on all clients to work properly in MP (otherwise only movement speed is adjusted, not animation itself)
 
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
 
{{Note
|user= Waffle SS.
|timestamp= 20211030194102
|text= For animation speed to control unit speed, this must be executed on the local client.
Non-local clients can set a speed less than the local client's.
Non-local clients using an animation speed greater than the local client's may result in the animation freezing.
}}

Latest revision as of 14:48, 12 March 2024

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:
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: Stamina getAnimSpeedCoef setAccTime

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
Posted on 2016-11-14 - 03:30
Demellion
Increasing animation speed of a unit also increases its run/walk speed (thanks to Killzone_Kid)
Posted on 2016-11-27 - 02:02
Demellion
Setting negative values with this makes animations act in reverse or make you stuck sliding in unknown directions.
Posted on 2018-11-07 - 08:39 (UTC)
DrSova
Didn't work on animals (A3 1.84.144923)
Posted on 2019-11-14 - 14:09 (UTC)
nomisum
Must be executed on all clients to work properly in MP (otherwise only movement speed is adjusted, not animation itself)
Waffle SS. - c
Posted on Oct 30, 2021 - 19:41 (UTC)
For animation speed to control unit speed, this must be executed on the local client. Non-local clients can set a speed less than the local client's. Non-local clients using an animation speed greater than the local client's may result in the animation freezing.