fileName
fileName
gets/sets the name of the blend file to load.
Type: string
Sample
Code
#################### Get fileName
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# get name of blend file from actuator to be loaded
name = act.fileName
#################### Set fileName
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# set name of blend file from actuator to be loaded
act.fileName = "Level_2.blend"
|