diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-02-22 13:22:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-02-22 13:22:49 +0300 |
commit | 570b48aae6f074ed19a3fc58b8e2a34b38123a49 (patch) | |
tree | ed0b8b2b47a54cc5937334edb8acd0a26286596e /release/scripts | |
parent | 9d5c2af1d1e11d40fec6c0da96cb37de1684f13c (diff) |
BGE Py API
print filename:line with ShowDeprecationWarning().
Typo in scripttemplate_gamelogic.py
removed 2 unneeded typedefs
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/scripttemplate_gamelogic.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/scripttemplate_gamelogic.py b/release/scripts/scripttemplate_gamelogic.py index 7184d7e424f..01348e86d0a 100644 --- a/release/scripts/scripttemplate_gamelogic.py +++ b/release/scripts/scripttemplate_gamelogic.py @@ -11,6 +11,9 @@ import bpy script_data = \ ''' +# This script must be assigned to a python controller +# where it can access the object that owns it and the sensors/actuators that it connects to. + # GameLogic has been added to the global namespace no need to import # for keyboard event comparison @@ -50,7 +53,7 @@ def main(): for actu in cont.getActuators(): # The actuator can be on another object, we may want to use it own_actu = actu.getOwner() - print ' actuator:', sens.getName() + print ' actuator:', actu.getName() # This runs the actuator or turns it off # note that actuators will continue to run unless explicitly turned off. |