whyyyy
I dont see anything wrong with this script, theres no errors, either.
Trying to cut the default death sound out and replace it with a new one.
function addNewSounds()
{
if(isFile("./Da_Death.wav"))
deathSound.fileName = "./da_Death.wav";
}
addnewSounds();
package DefaultCut
{
function deathSound::onAdd(%this)
{
parent::onAdd(%this);
if(isFile("./Da_Death.wav"))
%this.fileName = "./Da_Death.wav";
}
};
activatePackage(defaultcut);