Forum

> > CS2D > Scripts > LUA stop sound?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch LUA stop sound?

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt LUA stop sound?

itsoxymoron
User Off Offline

Zitieren
> sound can be stopped by LUA?

I found a code for this, is possible?

1
2
3
4
5
6
7
8
function ENT:TurnOn()
    if ( self.Active == 0 ) then
        self:StopSound( "soundfile1.wav" )
        self:EmitSound( "soundfile2.wav" )
	self:EmitSound( "soundfile3.wav" )
        self.Active = 1
    end
end

Because i need to stop a sound ,depending on how long it takes the player.

[for example: Sounds start [2:00 mins], when the player die, stop [ sound stoped on 1:12 ]]
1× editiert, zuletzt 27.09.11 04:06:43

alt Re: LUA stop sound?

archmage
User Off Offline

Zitieren
That is currently impossible, but I think it should be added. That and playing sounds at different positions instead of only players.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht