Moving Player in FPS with Animations

Hy there

So i was developing an Online FPS on Unity and most of it worked pretty well. But there is one Problem in the basic movement. So I use a free model wich animations, wich I found in the Internet for free. When I start the Animation, to move the Player forwards, the animation plays and the player is moving forwards. This works great. Then, I wanted the Player to be able to Move from left to right, in the same time he is moving forwards. Since there was no animation for this, i decided to do this wothout any. In code, i just update the x value of its position, wich does not work while the animation is playing.

Does someone have a Idee how i could solve this problem?
Thanks a lot!

~BrainyXS

P.s I am from Switzerland and my englisch is not great, I hope you are able to understand what i mean…

Do not move a player by Root Motion for FPS game. Move a player by code.

Thats what I try to do. But I want that this game also looks cool and the player is animated. How can I animate him without moving him (Move by code, animate without movement)

See Unity Official Fps Sample