can someone check this piece of code for a syntax error?
I can’t seem to find it.
import bge import aud import config def PlaySound(soundconfig): """ put the config sound variable into soundconfig so it plays """ aud.device().play(aud.Factory(bge.logic.expandPath(soundconfig)) def main(): """ calls the system """ ray = cont.sensors['Ray'] if not ray.hitObject: sdObject = None else: sdObject = ray.hitObject.getPropertyNames()
for some reason I can’t seem to find the problem.
a lot of thanks for the one who can help me.