16
Technical forum / Sound Problem
« on: February 25, 2013, 10:48:24 PM »
Hi
I got:
and Game.Msg tell me that submarineSound.IsSoundPlaying = null
why? I hear that sound is playing so why submarineSound.IsSoundPlaying is not true??
I got:
Code: [Select]
var submarineSound, submarineRandom, soundName;
submarineSound = Scene.CreateEntity();
submarineRandom = Random(1, 9);
soundName = "sounds\fx_jacks_ship\submarine0" + submarineRandom + ".ogg";
submarineSound.LoadSound(soundName);
submarineSound.PlaySound(true);
Game.Msg(submarineSound.IsSoundPlaying);
and Game.Msg tell me that submarineSound.IsSoundPlaying = null
why? I hear that sound is playing so why submarineSound.IsSoundPlaying is not true??