I know that there’s no setSound() method or whatever. But is there some other way to change the sound played by a brick so I don’t have to add 19 (estimate) of them to this object? I only need one sound to be played at once.
Actually the correct python method for changing the sound that will be played it setFilename() not setSound so that can be used to change the sound that will be played.
from GameLogic import*
cont = GameLogic.getCurrentController()
own = cont.getOwner()
No, I dont think startSound() takes arguments but I may be wrong. Also, thats probably not what Toomai is looking for.
No, that’s not the code I’m looking for.
Anyway, I tried setFilename() but squat happened. When I printed getFilename(), it returned the name of the actuator. What gives?
Its an OLD bug… I THINK I submitted it some years ago
Maybe do a search in the GE tracker and post your own bugreport.