This has stumped me for a long time.I’ve done some research, but i can’t seem to find anything useful. I want an object to keep its rotation, using a python script. I wrote this bit of code:
g=GameLogic cont=g.getCurrentController() own=cont.getOwner() own.setOrientation([0,0,22.5])
But i get this message:
PYTHON SCRIPT ERROR: Traceback (most recent call last): File "Text", line 6, in ? SystemError: error return without exception set
Does anyone have a solution? or a better method?
Thanks in advance.