- Home /
Turn Game Object on Controller on after onTriggerEnter
Hey,
I have being trying for the last two days to get this working for me with no luck, I have checked hundreds of threads and tried everything but no matter what it just won't work.
I have a flashlight model and a light on my character controller, I want that when I walk up to a flashlight model that I have in my scene, I have a sphere around it with a sphere collidor and I have the mesh renderer turned off so you can't see it.
I want it that when I start off the flashlight and light are turned off and only after entering onTriggerEnter of the sphere around the flashlight that the Flashlight and Light on my character controller get turned on again.
Sorry if I'm not making sense just really frustrated at the moment, I can post the code I'm trying at the moment but most of it is just bits and pieces from different answers and its all over the place at the moment, any help would be greatly appreciated.
Your answer
Follow this Question
Related Questions
Turning off renderer in other game object (C#) 2 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
How to Check if a component Exists on a Gameobject. 3 Answers
Can someone help me find the closest waypoint to a player? 1 Answer
Is there any way to convert Collision to a Gameobject or Transform? 1 Answer