ray trace never hits actors

Hi, I am trying to follow this guide - YouTube but am having some problems

  1. My A key and D key do the same thing (both move the character right)
  2. my ray trace does not hit any actors. I have put logs into to see that FPSCharacter::FireWeapon is called successfully but FPSCharacter::InstantShot never returns a hit despite making the actors bigger than the screen. I can’t see where the ray trace is going but i’m not sure how it could miss.

could anyone take a look at my project?

Look up debug helpers, they can draw the line trace so you can visually see it. Quick way to test is make sure everything is set to blockall, this will let the line trace hit. Make sure collision is enabled on your actors and that the actors have a mesh with collision data, or you are at least adding a simple collision object to the actor. also there is multi line trace vs single line trace, which will allow you to do overlap tests and line trace through multiple actors, but depending on your needs you might not need that one.