a question about a torch

ok here goes
ive got a game im working on and you look down on every thing just to give you an idea of what type of game
and your a police officer in the prison and everyones turned into zombie so your walking around with a handgun and a torch on the end of it and it ( a transparentish yellow actor)
but if can shine through walls and i was wondering is there a way i can make it not shine through the wall so as it hits the wall it only shines on the side your on
ive got a game im working on and you look down on every thing just to give you an idea of what type of game
and your a police officer in the prison and everyones turned into zombie so your walking around with a handgun and a torch on the end of it and it ( a transparentish yellow actor)
but if can shine through walls and i was wondering is there a way i can make it not shine through the wall so as it hits the wall it only shines on the side your on