This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/release/scripts/templates_py/gamelogic_simple.py

19 lines
268 B
Python
Raw Normal View History

2010-10-11 22:25:28 +00:00
import bge
def main():
2010-10-11 22:25:28 +00:00
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)
2018-06-26 19:41:37 +02:00
main()