- Home /
Trigger reset?
I'm not quite sure if reset is the right name for it, but I'm trying to set a Trigger that will allows the player to enter and change the camera back and fort multiple times.
To example better, I have the player being able to hit a trigger that will change there camera from 1st to 3rd person. Know I've gotten that part of the coding to work with no problem, however I can't figure out quite how to set the trigger so that player can walk back through it changing the camera back to 1st person.
If anyone can give me help or even tips that would be great. Thanks.
Same thing, but add something like: if camera 2 true, change to camera 1?
Answer by Random username · Nov 25, 2012 at 09:41 AM
You can use the method OnTriggerEnter(Collider c) to detect the player entering a collider, and OnTriggerExit(Collider c) to detect that the player has left that collider.
Your answer
Follow this Question
Related Questions
camera follow - no rotation 0 Answers
Control camera target from another scripts 1 Answer
How to lerp between cameras on a UI button click? 2 Answers
changing the target of camera through script 1 Answer
Camera Movement and angles 2 Answers