instantReplaceMesh
instantReplaceMesh()
Replaces the mesh without activating the actuator.
Sample
Code
# get the controller
controller = GameLogic.getCurrentController()
# get the replace mesh actuator attached to the
controller named act
act = controller.actuators["act"]
# set the name of the new mesh
act.mesh = "steelPlate"
# replace it now
act.instantReplaceMesh()
|