- Home /
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 :p thanks
Answer by FakeBerenger · Nov 12, 2012 at 03:36 PM
In OnBecameVisible, use a raycast to make sure the chair isn't behind a wall.
Answer by Jannis501 · Nov 12, 2012 at 08:24 PM
ok thank you, but i solved the Problem with a bool variable, Set to true when taking the flashlight
Your answer
Follow this Question
Related Questions
How to reproduce a sound on collision? 1 Answer
Playing a range of sounds from an object 0 Answers
How to make an object fallow you and disapear 2 Answers