Is receving light?

Hello

i want to crate a Zombie AI and wanted it to do some tasks the first and very inmportant is to go to lit area where it doesn’t receive light and if he receive it his health decrease til die and he should find shadowed area where he stays till the night

and the question is there any variable for this or should i trace for it ?
how to achieve that in blueprint ? and if its not doable in BP plz help me to do it in c++

Any Idea ?