propName
propName
gets/sets the name of the property the actuator uses.
Type: string
Sample
Code
################ Get propName
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator named act attached to the controller
act = controller.actuators["act"]
# get property it uses
prop = act.propName
################ Set propName
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator named act attached to the controller
act = controller.actuators["act"]
# Set property it uses
act.propName = "Health"
|