diff options
Diffstat (limited to 'release/scripts/templates_py/gamelogic_module.py')
-rw-r--r-- | release/scripts/templates_py/gamelogic_module.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/release/scripts/templates_py/gamelogic_module.py b/release/scripts/templates_py/gamelogic_module.py deleted file mode 100644 index 88c8cf0d75b..00000000000 --- a/release/scripts/templates_py/gamelogic_module.py +++ /dev/null @@ -1,27 +0,0 @@ -# This module can be accessed by a python controller with -# its execution method set to 'Module' -# * Set the module string to "gamelogic_module.main" (without quotes) -# * When renaming the script it MUST have a .py extension -# * External text modules are supported as long as they are at -# the same location as the blendfile or one of its libraries. - -import bge - -# variables defined here will only be set once when the -# module is first imported. Set object specific vars -# inside the function if you intend to use the module -# with multiple objects. - - -def main(cont): - own = cont.owner - - sens = cont.sensors['mySensor'] - actu = cont.actuators['myActuator'] - - if sens.positive: - cont.activate(actu) - else: - cont.deactivate(actu) - -# dont call main(bge.logic.getCurrentController()), the py controller will |