fix for various python bugs and remove unused var.
[blender.git] / release / scripts / templates / gamelogic_basic.py
1 import bge
2
3
4 def main():
5
6     cont = bge.logic.getCurrentController()
7     own = cont.owner
8
9     sens = cont.sensors['mySensor']
10     actu = cont.actuators['myActuator']
11
12     if sens.positive:
13         cont.activate(actu)
14     else:
15         cont.deactivate(actu)
16
17 main()