• 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 11, 2014 at 06:03 PM by getyour411 for the following reason:

Duplicate Question

avatar image
0
Question by poff · May 11, 2014 at 05:42 PM · inputlightpickupflashlightpick

Pick up flashlight with "E" ?

Hey guys. I really need help. I'm just stuck here. What I want to do is come to an object, click E on it, and do it so that it activates my spotlight, and the object destroys itself. I even googled this, but somehow everything I found, didn't work for me.

So how I think it should work:

The script checks if the player is in trigger If player is in trigger and presses E the script activates my light and destroys the object.

Just wondering how I should go on about it ?

Comment
Add comment · Show 2
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 getyour411 · May 11, 2014 at 06:04 PM 0
Share

This question with the exact same specs is asked all the time, whether it be for homework or a school project, we aren't here to do it for you.

You said you Google'd it, I call BS, frankly there's no way you didn't find one of the umpteen exact same questions if you did.

avatar image Vitze · Jul 28, 2015 at 12:16 AM 0
Share

https://www.youtube.com/watch?v=33jm3RG$$anonymous$$gDI this is all i could find!

0 Replies

  • Sort: 

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

22 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Flashlight effect 2 Answers

lining up spotlight to current mouse position 1 Answer

Does anyone know of some good scripting tutorials? 2 Answers

Flashlight Cooldown and Timer 1 Answer

Picking up a flashlight 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges