Here's a quick video on how to attach a flashlight that can be toggled on and off to your weapon in Unreal Engine. It's a quick tutorial with explanations that I hope will be helpful. I noticed my screen recorder only recorded a single window so when I was right clicking to type in blueprints it wasn't showing until I placed the blueprints on the event graph. Regardless, if you listen to the commentary it is still an easy video to follow and I'm happy to assist in the comments. Do consider Liking and Subscribing for future content!