Custom animation with an input?

Is it possible to have an animation that takes an input to decide where a bone may start and end in the animation?

So if input let’s say 10 you would do a wave at a location and 11 a different location ?

If you read this im sure the response would be why not just make two animations when in reality it would likely need 360 different animations if I went down that route

I’m planning to make a custom sword swing that can be inputted by the player move mouse to the right then left to swing from right to left sorta thing!

Any ideas friends :slight_smile: (Ideally blueprints btw)