Blockland Forums > Modification Help

How would I make a death sound with multiple sounds

Pages: (1/2) > >>

Protoss Dragoon:

/title
I'm trying to make a survival server with some custom human death screams, how would I do this?

Pastrey Crust:

You could package the 3D sound playing function and check for the datablock it should play. If the datablock matches the default deathsound datablock, have it pick your custom human death screams by random and play that instead.

Pah1023:

Actually instead you should be able to just package onDeath or whatever function and play the sound then.
I can't remember if the player's datablock has the death sound field, if so, just set it blank and rely on the onDeath package.


Shift Kitty:

Don't package onDeath, package Player::playDeathCry instead.

Pah1023:


--- Quote from: Shift Kitty on November 02, 2017, 04:05:18 PM ---Don't package onDeath, package Player::playDeathCry instead.

--- End quote ---
Wasn't sure what function there is and didn't feel like starting up Blockland to find out.

Pages: (1/2) > >>

Go to full version