How to change light color when a key is pressed?

Hi

I’m trying to change the light color of a point light from red to blue when the player press the key “K” but I don’t know how

Hey AI_Tower,

First and foremost, make sure to enable input on your actor that you want to affect with the input. Then make an event for K. Once you have done this, you should be able to get a reference to your point light, drag off of this and get access to the color value, which you can set to the color you want to appear. Specifically, you’ll be looking for this node:

66686-lightcolor.png

1 Like