Author Topic: Custom Death Sounds  (Read 861 times)

I'd like to make it so that certain playertypes will chose from three different death sounds that I specify when they die. I honestly have no idea how to do this, though.

Package Player::playDeathCry(%player). If they're using your playertype, don't parent and play your own sound.

If they're using your playertype, don't parent and play your own sound.

Use these variables for your needs in a playertype datablock:
painSound     = "YourSoundDatablockNameHere"; //When that playertype is hurt, it will play this sound if it exists instead
deathSound    = "YourSoundDatablockNameHere"; //When that playertype dies, it will play this sound if it exists instead

Use these variables for your needs in a playertype datablock:
painSound     = "YourSoundDatablockNameHere"; //When that playertype is hurt, it will play this sound if it exists instead
deathSound    = "YourSoundDatablockNameHere"; //When that playertype dies, it will play this sound if it exists instead

Oh. Ok. Didn't know those existed.