Hey ya'll,
I searched a lot, but I didn't really find something that matches my problem.
I'm making a game with a lively town, and I'm using the community lighting plugin to have a day/night circle. In my town, every NPC has some kind of schedule, similar to Stardew Valley for example.
It works fine, but I have an issue with sounds.
Example:
At 7am the local farmer leaves his house and walks over to his crops. He'll spend the day there and then walks back to his house. When he appears and disappears on the map, his door moves and makes a sound. So far so good. But this sound is audible on the whole map, so if several NPCs leave and enter their homes or do their daily tasks, the whole town is filled with door sounds or broom wooshes. You get the idea.
I'd like to find a way, where the source of the sound is in a specific region and you'll only hear it when you're in that region, too.
I don't want something to happen at the exact moment, the player enters a region, I just want to make sounds inaudible, if the player is not in the region around the door/bell/chicken/river etc. Like the sound appears on 7am, and if you're next to the door, you'll hear it, but otherwise, you don't.
I found some plugins that provide things (events) to happen, when you enter a region, but that's not what I need, I'm afraid.
Can someone help me?
Thank you in advance!
I searched a lot, but I didn't really find something that matches my problem.
I'm making a game with a lively town, and I'm using the community lighting plugin to have a day/night circle. In my town, every NPC has some kind of schedule, similar to Stardew Valley for example.
It works fine, but I have an issue with sounds.
Example:
At 7am the local farmer leaves his house and walks over to his crops. He'll spend the day there and then walks back to his house. When he appears and disappears on the map, his door moves and makes a sound. So far so good. But this sound is audible on the whole map, so if several NPCs leave and enter their homes or do their daily tasks, the whole town is filled with door sounds or broom wooshes. You get the idea.
I'd like to find a way, where the source of the sound is in a specific region and you'll only hear it when you're in that region, too.
I don't want something to happen at the exact moment, the player enters a region, I just want to make sounds inaudible, if the player is not in the region around the door/bell/chicken/river etc. Like the sound appears on 7am, and if you're next to the door, you'll hear it, but otherwise, you don't.
I found some plugins that provide things (events) to happen, when you enter a region, but that's not what I need, I'm afraid.
Can someone help me?
Thank you in advance!
