Author Topic: Checking if a the HorseJumpSound datablock exists.  (Read 383 times)

I do not know how do I check to identify if datablocks exist or not, or do I have just to use:

Code: [Select]
if(HorseJumpSound)
{
//some code here//
}

I do not know if it will work yet or not. I need your suggestions. Thanks.

(If you are going to post something that "you think I did not exert effort to research or not". You're wrong. I did and I can't seem to figure it out)

Code: [Select]
if(!isObject(HomerunBatHitSound)) //Beacuse it's exactly the same and creating a new one is a wase of datablocks.
{
datablock AudioProfile(HomerunBatHitSound) //used when we bash something with the shield.
{
filename = "./BatHit.wav";
description = AudioClosest3d;
preload = true;
};
}

From the riot shield Jetz and I just released.
The bathit.wav is still in the zip.
But, if the HomerunBat is enabled.

It doesn't force the client to download two of the same thing.