How to Make a Light Source ignore a specific actor, or actor ignore a specific light

well… what i want is basically something like this… so the walls and objects casts shadows like this according to my characters movement and line of sight.