blender/release/scripts/templates/gamelogic_basic.py
2010-10-11 22:25:28 +00:00

17 lines
266 B
Python

import bge
def main():
cont = bge.logic.getCurrentController()
own = cont.owner
sens = cont.sensors['mySensor']
actu = cont.actuators['myActuator']
if sens.positive:
cont.activate(actu)
else:
cont.deactivate(actu)
main()