Shooting a weapon after it's equipped

Your “hit actor” from the line trace if that is how you pick up your gun then yes, you can use that and plug that blue wire into the cast node to the weapon. You can also store the hit actor as a variable if you like and then use the variable to plug into the cast node. It is the same thing just makes it easier to do other things with the hit actor if you need to later on.