spiderworm
public python v1 · immutableclass test: def __init__(self): import GameLogic cont = GameLogic.getCurrentController() act = cont.getActuator('addObject') act.instantAddObject() gameObj = act.getLastCreatedObject() gameObj.myClass = self gameObj.myClass.printHello() def printHello(self): print "hello" myTest = test()