script
script
gets/sets the python script attached to the controller. (All
of
it. Every line.)
Type: string
Sample
Code
################# Get script
# get the controller
controller = GameLogic.getCurrentController()
# get the python script the controller uses
scriptComplete = controller.script
################# Set script
# get the controller
controller = GameLogic.getCurrentController()
# set the python script the controller uses
controller.script = "import Rasterizer \nRasterizer.showMouse(True)"
|