Blockland Forums > Modification Help

Jump Sound

Pages: << < (2/3) > >>

Wesley Williams:

That script confuses me... what is the point of having this at the beginning?

--- Code: ---if(isFile("./jumpSound.wav"))
jumpSound.fileName = "./jumpSound.wav";

--- End code ---


Amade:


--- Quote from: Wesley Williams on October 13, 2011, 11:15:25 PM ---That script confuses me... what is the point of having this at the beginning?

--- Code: ---if(isFile("./jumpSound.wav"))
jumpSound.fileName = "./jumpSound.wav";

--- End code ---

--- End quote ---
It's changing the file used by the jumpSound datablock that the player uses.

Greek2me:

Yes. It's the only part of the code that's actually needed. The packaged function is only there in case the jump sound datablock is created after the mod is loaded.

Wesley Williams:

Oh I see... just realized that jumpSound.fileName is referring to the in-game jump sound ;)

Darksaber530:

Thx bro. U mind if I release if on rtb?

Pages: << < (2/3) > >>

Go to full version