///
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). >_>
ID:160247
Oct 14 2008, 10:39 am (Edited on Oct 14 2008, 11:27 am)
|
|
I honestly can't see why I can't do this:
/// How do I get a system like this to work? EDIT: Never mind, view(src). >_> |
Oct 14 2008, 10:53 am
|
|
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...
|