ID:160247
 
I honestly can't see why I can't do this:

///

obj
gun
var/sound/S
New()
..()
if(S)
view(src)<<S //Why does this not display the sound?
pistol
S=sound('sound.wav')
machine_gun
S=sound('sounds.wav')


How do I get a system like this to work?

EDIT: Never mind, view(src). >_>
I don't know if it really makes a difference, but you don't need to use the sound() proc when using sound files.
In response to Kaiochao
Yes, I did.
In response to Speedro
Does that mean you've tried setting the variable without the sound() proc, or did you not read my post correctly?
In response to Kaiochao
I tried that originally...