How to check if a character is lit by light?

Try this;

  1. Make Blueprints from those Lights that you want to check if the player is being lit or not by those special ones.

  2. Create Collision Spheres with radius exactly as much as those Lights’ radius.

  3. Create a Bool variable in your character.

  4. In your Light BP, create a begin overlap event by using your Collision Sphere in the event graph.

  5. Drag a wire from “Actor” part of the Begin Overlap and type “Cast to MyCharacter_BP” (The name “MyCharacter_BP” should be what your character’s BP name is. I just gave this one as an example). From the cast, just drag out the new variable you created and set it “True”.

  6. Create an End Overlap by using Collision Sphere again and do the 5. completely same. Only change the last part. Make the boolean “False”.

  7. Summary: Everytime the character gets in the collision, the variable becomes true and whenever he gets out, it becomes false. There you go, now you can check if your character is lit or not. :slight_smile:

PS: I just gave the example as a boolean. You can set the visibility the same way. Alas, Set Visibility Off when overlapping, set it On when it’s not touching.