How do you make it so you can hold a key for 10 seconds then something happens?

How do you make it so you can hold a key for 10 seconds then something happens?
Along side with that is there anyway to make a X mark on the map that you can see through walls and at any distance X is to represent where you must go then when you reach there you must hold down a button for ten seconds for something to happen. If anyone could help please do, thank you!

To make object visible despite occlusion by other objects:

  • Create Translucent material
  • Under it’s properties find section Translucency, expand the advanced arrow and select Disable Depth Test

To make the button react after certain amount of time, try this:

80246-untitled.png

instead of holding the key use delay set it for 10 seconds

Not quite, as it would still trigger if the user released the button