forked from bartvdbraak/blender
16 lines
255 B
Python
16 lines
255 B
Python
|
|
def main():
|
|
|
|
cont = GameLogic.getCurrentController()
|
|
own = cont.owner
|
|
|
|
sens = cont.sensors['mySensor']
|
|
actu = cont.actuators['myActuator']
|
|
|
|
if sens.positive:
|
|
cont.activate(actu)
|
|
else:
|
|
cont.deactivate(actu)
|
|
|
|
main()
|