using a sound
Posted: Thu May 16, 2013 6:09 pm
Hello
I am trying to use some official sound in my mod:
I m running the game/editor on a mac os x platform.
how can i play any game's sounds?
eg: i want use the cube monster walk sound
i have define a script like this:
(the path of the sound is indicated in LoG modding section, so i use this one)
then i have use a second script to play it:
and then i have put a hidden plate which activate the "function playsound" script
but it indicates " warning! no such sample: cube"
these scripts work on any other additional sounds, but not with the game's sounds: is the path wrong?
can you help me please?
I am trying to use some official sound in my mod:
I m running the game/editor on a mac os x platform.
how can i play any game's sounds?
eg: i want use the cube monster walk sound
i have define a script like this:
(the path of the sound is indicated in LoG modding section, so i use this one)
Code: Select all
defineSound = {
name = "cube",
filename = "assets/samples/monsters/cube_walk.wav",
loop = true,
volume = 2,
minDistance = 20,
maxDistance = 120,
}Code: Select all
function playsound()
playSound("cube")
endbut it indicates " warning! no such sample: cube"
these scripts work on any other additional sounds, but not with the game's sounds: is the path wrong?
can you help me please?