Re:Sound actuator

#201326

eliteXXL
Partecipante
  • Blenderista
  • Post sul Forum 263

script:

Code:
import bge
cont=bge.logic.getCurrentController()
own=cont.owner
sound=own.actuators[“Sound”]
sound.fileName
cont.activate(sound)

errore:

Code:
Python script error – object 'Cube', controller 'And':
Traceback (most recent call last):
File “Text”, line 5, in
AttributeError: 'KX_SoundActuator' object has no attribute 'fileName'