Page 1 of 1

Distance of a sound parameters: where to configure this?

Posted: Sat Apr 07, 2007 10:13 pm
by Altusi
Hello,

I want to put sound in my map. But i don't know how to configure distance of a sound. I try to explain (and i hope you will understand because of my poor english! )
I want to put a sound in a room. But i want that more far i am, less i can hear the sound. I think it's possible to do this in MOHAA (in all game you can do that). But if it's possible, how i can do that? In the script file? In the music file?
Is someone can say to me how to do that please?
Thanks

Al

PS: i hope you understand what i mean

Posted: Mon Apr 09, 2007 9:32 am
by Runt
Yeh, this is possible.

check this tutorial: /t.php?id=11


mindist and maxdist is what you're looking for.
local.master = spawn ScriptMaster

local.master aliascache [aliasname] [soundfile] soundparms [basevolume] [randvolume] [basepitch] [randpitch] [mindist] [maxdist] [channel] loaded maps "obj dm"

Posted: Mon Apr 09, 2007 9:48 am
by Altusi
Oops sorry, i don't see this tuto! (maybe because i don't what was the name of this action).
So if i understand the tuto, i have to map, and script.

Thanks.

Al