1
# This module can be accessed by a python controller with
2
# its execution method set to 'Module'
3
# * Set the module string to "gamelogic_module.main" (without quotes)
4
# * When renaming the script it MUST have a .py extension
5
# * External text modules are supported as long as they are at
6
# the same location as the blendfile or one of its libraries.
10
# variables defined here will only be set once when the
11
# module is first imported. Set object specific vars
12
# inside the function if you intend to use the module
13
# with multiple objects.
19
sens = cont.sensors['mySensor']
20
actu = cont.actuators['myActuator']
27
# dont call main(bge.logic.getCurrentController()), the py controller will