AmbientSound plays on creation, can move it in the editor

This commit is contained in:
Darren Ranalli 2003-12-11 23:13:27 +00:00
parent d7d74c0d22
commit 1b04e361d6
2 changed files with 3 additions and 1 deletions

View File

@ -4,8 +4,10 @@ import BasicEntities
class AmbientSound(BasicEntities.NodePathEntity):
def __init__(self, level, entId):
BasicEntities.NodePathEntity.__init__(self, level, entId)
self.initSound()
def destroy(self):
self.destroySound()
BasicEntities.NodePathEntity.destroy(self)
def initSound(self):

View File

@ -119,7 +119,7 @@ class VisibilityExtender(Entity):
('newZones', [], 'visZoneList'),
)
class AmbientSound(Entity):
class AmbientSound(Nodepath):
type = 'ambientSound'
attribs = (
('soundPath', '', 'bamfilename'),