when I do
%fireSound = %json.get("firesound");
if(isFile(%firesound))
{
datablock AudioProfile(TF2_DummySound) {
filename = %firesound;
description = AudioClosest3d;
preload = true;
};
TF2_DummySound.setName("TF2_" @ %id @ "_fireSound");
}
I get
Object 'file/path/to/sound.wav' is not a member of the 'AudioProfile' data block class
in console.
Disabling/enabling preload doesn't fix.