DoomRL > Modding
sound.lua
Malek Deneith:
Um. Me bad, I must've not looked carefully. You need to do something like this instead:
--- Code: ---pistol = {
fire = "sounds/Weapons/pistol/pistol_shot_02a.wav",
pickup = "sounds/Weapons/pistol/pistol_use_01.wav",
reload = "sounds/Weapons/pistol/pistol_reload_01.wav",
},
--- End code ---
Still no "sound." before that is required. As for tehtmi's single bind example - I'm not sure if the bracket-less syntax is still possible. If it is then perhaps *this syntax* does require prefacing it with "sound."
GrimmC:
The bracketless bind requires "sound." I haven't tried your example with brackets yet, I'll let you know.
GrimmC:
--- Code: ---sound.pistol.reload = "newsounds/dsglkin.wav"
--- End code ---
results in the same error.
EDIT: It turns out "sound" has to be capitalized.
Navigation
[0] Message Index
[*] Previous page
Go to full version