I have a problem with playing some sound in GLOBAL SCRIPT:
I got a character that eats something in his enventory - with crunchy sound :)
I tried this in "sound free" room - so it should be the only sound playing
Script:
**************************
if (player==cNeznanec) {
cNeznanec.Say("MMm.");
aVeveria_je.Play(eAudioPriorityVeryHigh); // eating
cNeznanec.Animate(12, 8, eOnce, eBlock);
cNeznanec.LoseInventory(iLectovoSrce);
cNeznanec.Loop=1;
Wait(40);
cNeznanec.Say("text.");
Wait(40);
aNeznanectrebuh.Play(eAudioPriorityVeryHigh); // another sound effect)
Wait(20);
cNeznanec.Say("text.");
cNeznanec.Say("text.");
while (cZaseka.Room!=cNeznanec.Room) Wait(1);
cZaseka.Say("text.");
cNeznanec.Say("textl.");
cNeznanec.Say("some text.");
Wait(10);
stranisceneznanec=1;
}
*************************
Everything works fine, except i can't hear any sound.
If i use sound in the characters VIEW-FRAME it works fine.
Try this:
AudioChannel*ac = aVeveria_je.Play(eAudioPriorityVeryHigh); // eating
ac.Volume = 100;
Did you set the same sound as Viewframe sound?