Audiostream node changing streams

Godot Version

4.3stable

Question

i want to ask how can i change sound in Audiostreamplayer,
im making a game with few weapons witch all have different shot sounds, i wanted to just swap music in node by script but it doesnt work, here is screen shot, can anyone tell me why it doesnt work?

You need to load the audio, otherwise you are trying to assign a path/String to an audio stream.

$strzal.stream = load("res://...")

you must be the sigma! thank you very much it helps A LOT

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.