useDisplayMesh
useDisplayMesh
gets/sets
if the replacement mesh will be displayed
Type: bool
1 = True
= display replacement mesh
0 = False = don't display replacement mesh
Sample
Code
################### Get useDisplayMesh
# get the controller
controller = GameLogic.getCurrentController()
# get the replace mesh actuator attached to the
controller named act
act = controller.actuators["act"]
# display replacement mesh?
display = act.useDisplayMesh
################### Set useDisplayMesh
# get the controller
controller = GameLogic.getCurrentController()
# get the replace mesh actuator attached to the
controller named act
act = controller.actuators["act"]
# show replacement mesh
act.useDisplayMesh = True
|