Forum

> > CS2D > Scripts > LUA stop sound?
Forums overviewCS2D overview Scripts overviewLog in to reply

English LUA stop sound?

2 replies
To the start Previous 1 Next To the start

old LUA stop sound?

itsoxymoron
User Off Offline

Quote
> 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 ]]
edited 1×, last 27.09.11 04:06:43 am

old Re: LUA stop sound?

archmage
User Off Offline

Quote
That is currently impossible, but I think it should be added. That and playing sounds at different positions instead of only players.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview