Hey everyone… I’m trying to get 3d audio to clean it self up after the other players leaves. I keep getting the same issue has this guy:
discourse.panda3d.org/viewtopic … etachsound
I tried what he did to no advil…
def CleanUpOtherPlayers(self, Player=None):
if Player is None:
for x in self.userlist:
self.OtherPlayer3DManger[x].detachSound(self.OtherPlayerSounds[x])
self.OtherPlayer3DManger[x].detachListener()
self.userlist[x].removeNode()
self.userlist = {}
else:
self.OtherPlayer3DManger[Player].detachSound(self.OtherPlayerSounds[Player])
self.OtherPlayer3DManger[Player].detachListener()
self.userlist[Player].removeNode()
del self.userlist[Player]
Any clue or help?
lol I wish when the manual showed something… they show how to clean it up also