Duchenkuke wrote:
Quote: "Is it possible to make a script, wich plays a certain sound when f is pressed in the game?
And if yes, how ?"
Yes, it is possible; not only one, but several sounds at the same time, if you want to, however, you need to be more specific about the kind of sound you want to play. For example:
1) Is it a long song or a sfx sound effect, such as an alarm, an explosion, voice sound, etc.
2) How many times do you want to play this sound? It's once, twice or continuously?
3) The sound will be played, when the player enters into a specific area or when approaching any object?
Therefore, if you do not define how do you plan to play a particular sound, it is difficult for people trying to help you.
Unfortunately, do not exist a generic solution, that works fine for all the cases, during a game play.
Good luck!
Northern