Fixed Camera, Mouse aimer, How do I animate this?

Okay here’s the deal, I’ve been going without sleep trying to work this out.
Ive been using java script, but I will start using c# if that is what is needed.

I have a basic movement script on my Parent, to move on world axis.
I have a child under that which my character model is on, which aims towards the mouse.

My problem is working out how to animate this player model based on the direction its facing, but also the movement the parent is doing.

Ive tried an animation script trying to use velocities, but my current hierarchy doesn’t allow me to do this so easily. I think I have to start thinking of how to do this from a fresh start.

If anyone could point me in the right direction I’d be most grateful.

I ended up setting up some triggers, and whatever trigger the character was pointing at it would swap the keys for the animation cycles. I don’t think its very efficient, but it works for now.