I scripted a music instrument and when i play it, i can hear it, but other people in the level can't hear it. so my question is how can I make it so that others can hear the sounds from the music instrument too?
here's a part of my script:
NPC Code:
// flute1 is idle gani and flute2 is the animation gani when player plays the flute
//#CLIENTSIDE
function onWeaponFired() {
this.mode = 1;
this.count = 10;
disabledefmovement();
setani flute1,;
setTimer(0.05);
}
function onTimeout() {
if (this.mode == 1) {
// Quit
if (keydown(6)) {
setani idle,;
enabledefmovement();
this.mode = 0;
}
if (keydown(1)) {
setani flute2,;
if (keydown(4)) {
play("flute9.wav");
}
else if (keydown(5)) {
play("flute5.wav");
} else {
play("flute1.wav");
}
// some more codes here...
setTimer(0.05);
}
}