Quote: "I do not want to spend my day looking through a PDF when I have other things to do."
Not to sound mean, but your statement just makes it sound like you want someone else to do the work for you.
You really need to learn how to script. I know - with FPSC you can create a full game without having to write a single line of code. It's true - you can do it. But your games will be much better if you learn scripting. Scripting will enable you to do so much more.
To answer what's left of this topic:
Quote: "1. Can you show us your script?
1.I don't have one."
JRH provided a piece of one, but you'll really need to learn scripting in order to finish this.
Quote: "2. Where (what folder on your hard drive) do you have the sound located?
2.audiobank\misc."
Had to ask - some people don't know that you need to have audio sounds in the audiobank folder.
Quote: "3. What are you attaching this script to?
3.nothing. I just want it to play a sound."
My first question after this is... when do you want it to play the sound? When a weapon is picked up? Background music that is always playing? When the player does something? If you can let us know that, we can tell you what it has to be attached to.
Quote: "What is state=x and what do I put?"
This is why you need to learn scripting. State, simply put, is the "state of being or isness" of the particular script. Depending on what state the script is in, certain actions happen. For example, look at the following 2 lines of script.
:state=0:lighton
:state=0,lighton:state=2
(Note - do NOT use this code. It is for example purposes only.) In the code, the script checks to see if it is in state 0. If it is, it then turns the light on. It then checks to see if it is in state 0 AND the light is on. If it is, then it moves to state 2. If not, it stays in state 0.
For the example JRH provided, you would need to make state equal to some number. And what number depends on when the sound is supposed to be played, and if other actions need to be performed.
Now do you see why you need to learn scripting?
Priest of the Church of Joe Wood