- Home /
Question by
ratboyV2 · Jan 21, 2017 at 06:46 AM ·
javascripttriggerjavahorror
How do you make a trig object?
Hi i'm trying to make a game (i,m new to unity) and i'm wondering if there's anyway, when you open a door a person will run down the hall, when you open the door.
Comment
Your door would have a script which has a funtion "Open" or something like that. This gets called when the door is opened. In the function, you not only rotate or slide the door to it's open state, but also include the code that makes the person run down the hall (or call another function which does that).
Your answer
Follow this Question
Related Questions
Scoring Issue 0 Answers
Add variable from another script? 0 Answers
Why sound doesn't stop? 2 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
How to make OnTriggerEnter and OnTriggerExit functions more than once? 1 Answer