Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed May 13, 2013 at 04:33 PM by Jessy for the following reason:

Too lazy.

avatar image
-1
Question by Agor · May 12, 2013 at 05:37 PM · triggerkey

How to make a object what can be picked up and when clicked on another object it ends the game?

I´m currently developing an indie horror game and i have a key object randomly generating itself at random places. I need that player can pick up the key and when player left clicks on a door (after key is picked up) "The End" title will show up and game will end. And if someone is kind enough i could use a script what plays locked door sound when player doesn´t have the key. Could someone help me fast, because I need it tomorrow already. Thanks!

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ExTheSea · May 12, 2013 at 07:38 PM 0
Share

Here is a link to a similar question which I answered already.

avatar image Agor · May 13, 2013 at 02:41 PM 0
Share

there is no link.

avatar image ExTheSea · May 13, 2013 at 04:14 PM 0
Share

Sry.

Here it is: http://answers.unity3d.com/questions/450032/pickable-item-to-unlock-doors-being-able-to-procee.html

avatar image Agor · May 13, 2013 at 04:28 PM 0
Share

Happens. Thank you.

avatar image Agor · May 13, 2013 at 04:41 PM 0
Share

I looked that and i did that, but an annoying error accured. It says semicolon is missing but i have that at the end. Can you help. Here is the script:

 Unlock() Function;
     
     // Load the level named "Endgame".
     Application.LoadLevel ("Endgame");
Show more comments

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why does my climb stairs animation not play? 1 Answer

My movement function with jump won't work with collider function 1 Answer

how do i make that only triggers a specific object 1 Answer

Enable/Disable script on trigger 1 Answer

Trigger respawn after collision? 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges