Distance of a sound parameters: where to configure this?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Altusi
Lance Corporal
Posts: 13
Joined: Sat Mar 24, 2007 5:08 pm

Distance of a sound parameters: where to configure this?

Post 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
Runt
First Lieutenant
Posts: 188
Joined: Wed Feb 11, 2004 5:03 pm
Location: The Netherlands
Contact:

Post 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"
Altusi
Lance Corporal
Posts: 13
Joined: Sat Mar 24, 2007 5:08 pm

Post 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
Post Reply