Sound when see gamect? need help

Hey,

I’didnt find such a answer and I need help… I want to write a horror game and i need some special FX… My Problem:
There’s a long room with some lights and a chair, there is a table at the and and a taclight… so when i took the taclight, and turn around i want so have a sound, because on the chair is a puppet… I tried with Renderer.becomevisible but that don’t works, it plays too when i don’t see the puppet, that waits behind the wall… and sorry for some mistakes, i’m from germany and don’t speak english well :stuck_out_tongue: thanks

In OnBecameVisible, use a raycast to make sure the chair isn’t behind a wall.

ok thank you, but i solved the Problem with a bool variable, Set to true when taking the flashlight