For some strange reason, I can’t set property values with Python.
For example, if I were to do this…
cont = GameLogic.getCurrentController() own = cont.getOwner() prop = own.prop prop = 1
That would not set the value of prop to 1. Its a really weird and annoying problem. I have put up with it for a long time by using logic bricks to set property values, but I’m getting a little sick of that. Does anyone know how to fix this?
EDIT: I just found out that if I do this it works…
cont = GameLogic.getCurrentController() own = cont.getOwner() own.prop = 1
So is there a way to set property values after you define the property?