mob/verb
Moosik_1(var/sound/S as sound)
S.channel=3
S.wait=1
world<<S
It brings a runtime error:
runtime error: Cannot modify A_Sound.wav.wait.
proc name: Moosik 1 (/mob/verb/Moosik_1)
usr: Ter4byte (/mob)
src: Ter4byte (/mob)
call stack:
Ter4byte (/mob): Moosik 1('A_Sound.wav')
BUT, if I do this:...
mob/verb
Moosik_2()
var/sound/S = sound('A_Sound.wav')
S.channel=3
S.wait=1
world<<S
...it works perfectly.
The thing is; I want the player to be able to upload their own files, but I want the sound files to wait until that channel is free.
Can I get some help with this?? Thank You!!!
The "as sound" modifier means the value of S will be a cache file. The sound() proc, or new/sound(), will create a /sound datum that you can modify.