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 programing 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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Opening an animated door with a keycard
Door opening with a key, my scripts and problem
Press an in-game switch to open a door - help?
GUI text, door and object collider
Open door with key