env_sound
14 replies



27.02.12 09:52:16 pm
How can i start env_sound by lua?:O
For me not works by trigger.. i don't know why..
For me not works by trigger.. i don't know why..
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu

hmm, i'm mapper, so maybe try trigger 'trigger delay'
He wants it executed from lua. (:
The console command for a sound on the whole map is
sv_sound, a sound for a specific player -
sv_sound2. You could use them in a parse function.


I code, therefore I exist.
i am want use env_sound.. because this play on area not on all map...
so pleease help me:)
so pleease help me:)
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu

I code, therefore I exist.
i tried but, not works... the sound file is ogg so should to use...
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu

i tried but, not works... the sound file is ogg so should to use...
Show us how you use it, code-wise.
I code, therefore I exist.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("serveraction" ,"sact22")
function sact22(id, act)
if(act==2) then
menu(id, "DJ Music, Play")
end
end
addhook("menu", "menus2")
function menus2(id, tit, sel)
if(tit=="DJ Music") then
if(sel==1) then
parse("trigger 155");
end
end
end
function sact22(id, act)
if(act==2) then
menu(id, "DJ Music, Play")
end
end
addhook("menu", "menus2")
function menus2(id, tit, sel)
if(tit=="DJ Music") then
if(sel==1) then
parse("trigger 155");
end
end
end
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu
Well, nothing is wrong with the code as far as I can tell. Double-check the entity data - it may lack a name, or the sound may be corrupted.
I code, therefore I exist.
sound is not corrupt because, i tested with sv_sound and with that works...
so maybe the use button(trigger) ..
so maybe the use button(trigger) ..
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu
I'm not sure what you mean by button(trigger), but your error is very strange. Is the entity's name specified and correct? Try that whatever you want to try, I guess.
I code, therefore I exist.
Tomorrow i give a screenshoot, but now i go to sleep, goodnight and thanks for help

CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu

hmm, i'm mapper, so maybe try trigger 'trigger delay'
mapper?

Is the w33d on the show real?



