forked from bartvdbraak/blender
6f1e9a843e
Files copied into scripts/templates will automatically appear in the menu. the operator template is a bit rough but a start.
16 lines
227 B
Python
16 lines
227 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()
|