diff --git a/Sources/armory/logicnode/PlaySoundRawNode.hx b/Sources/armory/logicnode/PlaySoundRawNode.hx index c5a4df99c5..780fefddaf 100644 --- a/Sources/armory/logicnode/PlaySoundRawNode.hx +++ b/Sources/armory/logicnode/PlaySoundRawNode.hx @@ -27,7 +27,7 @@ class PlaySoundRawNode extends LogicNode { override function run(from: Int) { switch (from) { case Play: - if (sound == null) { + if (property6 == 'Sound' ? sound == null : true) { iron.data.Data.getSound(property6 == 'Sound' ? property0 : inputs[5].get(), function(s: kha.Sound) { this.sound = s; }); @@ -36,6 +36,8 @@ class PlaySoundRawNode extends LogicNode { // Resume if (channel != null) { if (property2) channel.stop(); + if (property6 == 'Sound Name') + channel = iron.system.Audio.play(sound, property1, property5); channel.play(); channel.volume = inputs[4].get(); }