Community Forum

Play animation in reverse

Forum Overview >> Scripting

Created10.07.2012 08:45

Kaosknite (fmc_modding) 10.07.2012 08:48
Is there a script function to play an animation sequence in reverse? For example....I have an animation sequence that plays when motor started. Is there a way to play the same animation in reverse from the last track to the first track when the vehicle goes backwards?

Samuel H. (modelleicher) 16.07.2012 22:05
Play the animation forward:
setAnimTrackSpeedScale(charSet, 0, speedScale)

and reverse:
setAnimTrackSpeedScale(charSet, 0, -speedScale)

Kaosknite (fmc_modding) 24.07.2012 07:46
Thanks Samuel H. It works great.

Note: Log in to post. Create a new account here.