import Blender import math import GameLogic O = GameLogic.getCurrentController().getOwner() # set RunOnce to 1 if O.RunOnce: O.RunOnce = 0 mVar.GameLogic = 1 mVar.GameLogic += 1 print mVar.GameLogic