c9c2a5943090c0fb9ab626a3a5a6db67e62c2f85
[blender-staging.git] / release / scripts / templates / gamelogic_basic.py
1
2 def main():
3
4         cont = GameLogic.getCurrentController()
5         own = cont.owner
6         
7         sens = cont.sensors['mySensor']
8         actu = cont.actuators['myActuator']
9         
10         if sens.positive:
11                 cont.activate(actu)
12         else:
13                 cont.deactivate(actu)
14
15 main()