Debriefing > Bug Reports & Fixes
[BUG] 4.2.3: GEUtil.StopSound() isn't stopping directory sounds
(1/1)
Joe:
Hi,
It is failing to stop the "GES_Overtime" mp3 and DAD mode's .wav resurrection sound.
It can stop overtime1 in the problem demo code below but not overtime2:
--- Code: ---
class DeathMatch( GEScenario ):
playing = False
def OnRoundBegin(self):
GEUtil.PrecacheSound("player/GES_Overtime.mp3")
def OnPlayerSay(self,player,text):
if text == "!gesrocks":
overtime1 = "GEGamePlay.Overtime"
overtime2 = "player/GES_Overtime.mp3"
if DeathMatch.playing == False:
GEUtil.PlaySoundTo(player,overtime2,True)
DeathMatch.playing = True
else:
GEUtil.StopSound(player,overtime2)
DeathMatch.playing = False
...
--- End code ---
Navigation
[0] Message Index
Go to full version