I have a function in the ThirdPersonGameMode that checks timer and should make the directional light bright, imitating a sun flare. I found a Cast to DirectionalLight blueprint node, but I can’t figure out how to get the DirectionalLight object to cast to or use for SetIntensity. Coming from programming backgroung, I am looking for a blueprint node to get the instance by component name or something. What is the correct way to get a directional light instance from the game mode?
Hi! There are several nodes that can help you:
- Get Actor of Class node
- Get All Actor of … nodes
- Get All Actor With … nodes
- Get Component… … nodes
Thanks! Actor of class worked!
There you go! It works! Walrus protects from red dwarf flare - YouTube
1 Like