Author Topic: Object X is not a member of the 'AudioProfile' data block class  (Read 330 times)

The exact error I get is this.
Quote
Object 'arrowExplosionSound' is not a member of the 'AudioProfile' data block class
My weapon works and I can hear that sound just fine. So why do i get that error? It's probably something simple but Search has failed me.

Solved. It was a simple matter of preloading the sound.
Code: [Select]
datablock AudioProfile(arrowExplosionSound)
{
   filename    = "Add-Ons/Weapon_Bow/arrowExplosionSound.wav";
   description = AudioClosest3d;
   preload = true;
};