I heard I can modify sound easily with this script but when I use it the sound file plays (about 0.5 sec) but stops immediately. I just wanted to add the fan rounding sound near the ventilation and set fade out/in if the player character near the object or not.
I actually tried to put sound into the object and called the action but the sound's volume was same no matter the character near it or not.
I hope this editor can set the object has its own sound (eg. grumbling sound of the cat from a distance or flitting sound of flies near from dead body) so the game engine detects a distance of the sound automatically.
Otherwise I need someone who can fix the issue I mentioned above.
Below thing was the script I used, it should be worked but it didn't.
local sound01 = startSound('vispath:assets/audio/sound effects/fan_sound.ogg')