non 3d sounds?
-
barronvonburp
- Posts: 30
- Joined: Mon Jul 13, 2015 7:41 am
non 3d sounds?
How would one make a sound non 3d? Without using ambient tracks.
Re: non 3d sounds?
set the soundType field of the SoundComponent to "ambient" in its definition, or use SoundComponent:setSoundType("ambient") at runtime, or use the playSound() global function
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
-
barronvonburp
- Posts: 30
- Joined: Mon Jul 13, 2015 7:41 am
Re: non 3d sounds?
Dont know how to use playsound() can you eplain it?minmay wrote:set the soundType field of the SoundComponent to "ambient" in its definition, or use SoundComponent:setSoundType("ambient") at runtime, or use the playSound() global function
Re: non 3d sounds?
In script: Simply type playSound("party_fall")barronvonburp wrote:Dont know how to use playsound() can you eplain it?minmay wrote:set the soundType field of the SoundComponent to "ambient" in its definition, or use SoundComponent:setSoundType("ambient") at runtime, or use the playSound() global function
Use the name of any defined sound in the quotes.
(This can be tested out in the console as well.)
-
barronvonburp
- Posts: 30
- Joined: Mon Jul 13, 2015 7:41 am
Re: non 3d sounds?
How would i make it so it runs the script to play the dialog when X is activated?Isaac wrote:In script: Simply type playSound("party_fall")barronvonburp wrote:Dont know how to use playsound() can you eplain it?minmay wrote:set the soundType field of the SoundComponent to "ambient" in its definition, or use SoundComponent:setSoundType("ambient") at runtime, or use the playSound() global function
Use the name of any defined sound in the quotes.
(This can be tested out in the console as well.)
Re: non 3d sounds?
You'll have to be a little more specific about what X is, and what you are trying to do.
If X triggers a script function, then you can place the playSound call in that script function, and it will play the sound when called.
If X triggers a script function, then you can place the playSound call in that script function, and it will play the sound when called.