I can write my topic however I want, but I’m just sticking with the sample questions such as:
What do you want to achieve? Keep it simple and clear!
- I want my viewmodel to (somewhat) stay still.
What is the issue? Include screenshots / videos if possible!
- Whenever I switch
animationTracks in my (local)scripts, the viewmodel and the gun reset for a moment before snapping back into their place (the next animation).
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
- No, I have not
Any help appreciated!
Well, you don’t give much to go on.
Correct me if I am wrong…
I assume the problem is the gun moving away from the hand when the animation switches?
Your gun is positioned to the hand by the animation? or is the gun attached with a weld or a constraint?
Play the animation before ending the last one. For ones that aren’t actions like shooting, play them about 0.1 seconds before the current one ends
Yes, the gun is initially welded to the right arm by a Motor6D, and the animation positions it there.
Well, have you tried to set the Motor6D to make the gun appear in the hand without any animation?
So then the animation only moves the arms?
Also did you try what was suggested by @atfdaj suggested with starting the next animation before the current one is finished?
I have officially fixed my problem, thanks to everyone for the support!
The main problem with the resetting is that I constantly switched animations (whenever shooting, for example). @atfdaj 's solution has also solved my problem, but I’ve figured out that I don’t need to be switching animation tracks at all! As long as the shooting has a higher priority than the idle animation, everything works fine!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.