propName
propName
Note:
Only used with Action
Playback Type: Property
gets/sets the
name of the property.
Type: string
Sample
Code
################ Get propName
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# get name of the property
name = act.propName
################ set propName
# get the controller
controller = GameLogic.getCurrentController()
# get the
actuator attached to controller named Walk
act = controller.actuators["Walk"]
# set name of the property
act.propName = "prop"
|