Quote: "do I put the name of the file replacing the glass.wav?"
...yep. Using the script provided above:
:state=0:sound=audiobank\[ANY FOLDER OF YOUR CHOOSING]\[YOUR SOUND
FILE HERE],rundecal=1,shapedecal,state=1
Quote: "and where does this script go?"
...typically, generic destroy scripts are placed simply into the
scriptbank folder,
located
The Game Creators/FPS Creator/files/scriptbank.
Your destroy script above could be placed into the
destroy folder, located
The Game Creators/FPS Creator/files/scriptbank/destroy.
In actuality, you can place it into
The Game Creators/FPS Creator/files/scriptbank/
[ANY FOLDER NAME YOU WISH], and it will function just fine.
The best way to apply your custom script to your entity is to open the entity's
.fpe file, and choose one of the following options to assign your script to the entity:
aidestroy = [NAME OF YOUR CUSTOM SCRIPT HERE]
or
aidestroy = destroy\[NAME OF YOUR CUSTOM SCRIPT HERE]
or
aidestroy = [NAME OF YOUR FOLDER\[NAME OF YOUR CUSTOM SCRIPT
HERE]