Help with aiming!

So i’ve created an animation to use for my idle rifle ironsights in the anim starter pack by epic games.But how do i make the character use the animation in my idle rifle ironsights?

Thanks

Are you asking how you get the forward vector from the rifle sights, or asking how to get the rifle lined up in the middle of your screen, or…?

Both really;)

To get the forward vector of a component:

  • Drag your component into the blueprint editor.
  • Drag a pin off the component and start typing “forward” and select the get forward vector node.

To get your rifle lined up in the middle of the screen (assuming you are using a character setup much like the sample projects)

  • Open up the Viewport window of your character blueprint editor
  • Position your rifle in front of the camera.