Forum

> > CS2D > Scripts > env_sound
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch env_sound

14 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt env_sound

Marcell
Super User Off Offline

Zitieren
How can i start env_sound by lua?:O
For me not works by trigger.. i don't know why..

alt Re: env_sound

EngiN33R
Moderator Off Offline

Zitieren
The console command for a sound on the whole map is cs2d cmd sv_sound, a sound for a specific player - cs2d cmd sv_sound2. You could use them in a parse function.

alt Re: env_sound

Marcell
Super User Off Offline

Zitieren
i am want use env_sound.. because this play on area not on all map...
so pleease help me:)

alt Re: env_sound

EngiN33R
Moderator Off Offline

Zitieren
user Alistaire pretty much nailed it. If that doesn't work, I guess you could use one of the custom sound3 functions.

alt Re: env_sound

Marcell
Super User Off Offline

Zitieren
i tried but, not works... the sound file is ogg so should to use...

alt Re: env_sound

EngiN33R
Moderator Off Offline

Zitieren
user Marcell hat geschrieben
i tried but, not works... the sound file is ogg so should to use...


Show us how you use it, code-wise.

alt Re: env_sound

Marcell
Super User Off Offline

Zitieren
1
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

alt Re: env_sound

EngiN33R
Moderator Off Offline

Zitieren
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.

alt Re: env_sound

Marcell
Super User Off Offline

Zitieren
sound is not corrupt because, i tested with sv_sound and with that works...
so maybe the use button(trigger) ..

alt Re: env_sound

EngiN33R
Moderator Off Offline

Zitieren
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.

alt Re: env_sound

Marcell
Super User Off Offline

Zitieren
Tomorrow i give a screenshoot, but now i go to sleep, goodnight and thanks for help

alt Re: env_sound

WinterPwnd
User Off Offline

Zitieren
user curt1996 hat geschrieben
hmm, i'm mapper, so maybe try trigger 'trigger delay'

mapper? no sry for the offtopic, i was allso gona suggest the parse('trigger <etilityname>') but nvm if it didnt work idk.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht