{"name":"setAnimSpeedCoef","operator":null,"title":"setAnimSpeedCoef","type":"command","url":"https://community.bistudio.com/wiki/setAnimSpeedCoef","revid":353131,"updated":"2024-03-12T12:48:26Z","groups":["Animations","Stamina System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.54"}],"since":{"game":"arma3","name":"Arma 3","version":"1.54"},"arma3_since":"1.54","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Sets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).\n\nDoesn't affect upper body animations (reloading, etc.)","syntaxes":[{"syntax":"unit setAnimSpeedCoef coef","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"coef","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"coef: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"coef","types":["Number"]}}],"examples":[{"text":"```sqf\nplayer setAnimSpeedCoef 0.75;\n```","code":["player setAnimSpeedCoef 0.75;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Stamina","getAnimSpeedCoef","setAccTime"],"notes":[{"user":"Waffle SS.","date":"2021-10-30T19:41:02Z","text":"For animation speed to control unit speed, this must be executed on the local client.\nNon-local clients can set a speed less than the local client's.\nNon-local clients using an animation speed greater than the local client's may result in the animation freezing."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Animations","Command Group: Stamina System","Introduced with Arma 3 version 1.54","Scripting Commands","Scripting Commands: Local Effect"]}