- Home /
key to open gate
hello all
can anyone help me im looking for a scrip that will allow me to be able to pick up a key and use it to open a gate. i need it to be like when you get next to the key it says "do you wish to pick up key" to pick it up you need to press E then with the key you go to the gate and open gate by pressing E, but if you don't already have the key when you press E next to the gate it will say "Gate locked"
if you can help me that will be awesome
i would check out the tutorials on unity3d.com and get a start on progra$$anonymous$$g first.. because your question won't get answered if you ask for other people to right your code for you...
oh i just thought cause its called unity answers i could get answers here sorry i dident know also it wouldn't just help me it will help a lot more people too
its not really a question. Its asking people to write your code.
Answer by Billamu · Aug 27, 2010 at 05:34 AM
I recommend you take a look at this book. It has many easy to follow tutorials that will lead you to setting up your key routine.
https://www.packtpub.com/unity-game-development-essentials/book
Your answer
Follow this Question
Related Questions
Opening an animated door with a keycard 0 Answers
Activate object with key 1 Answer
Opening a door with a key 0 Answers
Using If functions to open door with a key. 1 Answer
How to open a gate with a key ? 1 Answer