How to get intensity in blueprint

My goal is to use a Level blueprint to alter the intensity of a light and then return it back to the initial intensity. I don’t see a GetIntensity node and do not know how to pull in this setting. If I select the light in the main editor and then use the context sensitivity in Blueprint I don’t see a get that seems to work.
I’m new to UE4 so any blueprint theory and how to’s for this would be very helpful!

Light-Actors are a little bit strange. You have to access the internal light component to get the node you need:


Don’t know why they didn’t expose it in the point light itself.

Thank you! What type of node is the Light Component in the image above?

Hi Fred5,

it’s just a normal getter node. Just drag a pin out of point light and type ‘get light component’.

Got it! Thanks!

When I wire this into a SetIntensity is says the the variable is not in scope and the int does not get set. Do I need another node between this setup and the SetIntensity?

Was it wired up like this? This is a simple level blueprint with 1 pointlight:

After playing and typing “ce light” at the console, the screen goes bright as expected.

Here is how I have it wired and it will not allow a connection to the LightComponent from the SetIntensity target. Still getting ‘not in scope’.

Im am not sure what exactly is your goal here. You first set the intensity to 0, and then you set it to 0 again (because that’s the current value of intensity).

If you want to set it back to the original value you have to save it first into a variabale (there is no ‘reset’-node unfortunately).

The ‘not in scope’ error is normal, I fear. The blueprint debugger is basically broken in the current state of the engine (4.7.6).