ok here’s my problem. i have one object that uses a script, in this script i define another obj like this.
cont = logic.getCurrentController()
sce = logic.getCurrentScene()
objList = sce.objects
objR = objList[“Player2”]
on this other object, Player2, i have already defined a property in this way
obj[‘crash’] = 0
so back to my original script, i use a statement like this. this statement has worked for me before and i see no problems with it.
if objR[‘crash’] == 0:
anyways i would think that this should work, and it does with many of my other scripts, however python pops up an error kinda like this.
if objR[‘crash’] == 0:
KeyError: value = gameOb[key] KX_GameObject, key “crash” does not exist
any help would be appreciated, i have no idea why this dosn’t work.