Attack animation

Aldright so i want to make an attack animation but i dont know hwo to setup an animation with mouse button? or any other keybinding for that matter

I tried this: http://prntscr.com/9gxlm2

But it tells me i need an imput at the mouse button thing?

How do i set this up

Hello yghtim,

This is done through our blueprinting system. This is a way to visually script what you would like to achieve through code in your game. So, the link you provided, points toward a blueprint that is created to check and see if the left mouse button is down and then set a value for a velocity associated with this blueprint. I believe following some beginning tutorials on Blueprints as well Animation within UE4 would greatly benefit you.

Link to Blueprints :

Link to Animation Blueprints :

After familiarizing yourself with Blueprints and then Animation blueprints you should have a better understanding of how these systems work together and how you can achieve what you want with your project.

If you are still lost here is a YouTube tutorial that covers exactly the blueprint that you linked in your comment.

-

aa Great! Thanks! i didnt find that video.

But hey i have a following question Witch is the following:

http://prntscr.com/9gzmlj

How do i fix this? red goes to red, what does blue get?

Sometimes nodes do not need certain inputs. For instance you are checking to see if the animation is valid and then setting a speed and velocity to the other cast. This cast may not need that input.