rawux
(rawux)
1
i had used python function “fileName” for sound actuator to change wav sound in bge, but it seems doesnt work.
i need to change car’s engine sound
here is a part of script:
if own.gear == 0:
engine.fileName = “car_idle.wav”
if own.gear == 1:
engine.fileName = “car_gear1.wav”
This Doesn’t Work!!! Help!!!:no:
bull-frog
(bull-frog)
2
Do you mean own[‘gear’]?
Could you post the whole script or a blend?
rawux
(rawux)
3
yes. When owner gear = 0
sound actuator should play car_idle.wav
When owner gear = 0
sound actuator should play car_gear.wav
pildanovak
(Vilem Duha)
4
Hm, this stayed unanswered, but I am just facing the same problem - the fileName property which was in 2.49 is missing in 2.5