Spotlight on FP view

How do I add a spotlight to my charcter blueprint, so that I can turn it on and off by pressing a specific key? Also, I want a prop(eg. a torch) to show up right infront of my camera, but only when I want my light on, else it should dissapear.

For this you would need the torch model. But the basics are that you just put a spot light component in front of your camera and put the brightness down to zero. In your Character Blueprint Graph you create an InputAction KeyEvent like ‘F’, and then set the brightness of the light to 1000 or what ever you want. For the torch you would do the “Set Visibility” node (animations would look better). Heres a quick picture to show you what I mean:


And the event graph:


I would recommend putting the torch as a mesh into the skeletal mesh, but I don’t know about this topic - this is just the basic stuff.

Thank You, this would help immensely