propName
propName
Note:
Only used with Action
Playback Type: Property
gets/sets the
name of the property.
Type: string
Note:
If there isn't a property, it
will return an empty string.
Sample
Code
################ Get propName
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# get name of the property
name = act.propName
################ Set propName
# get the controller
controller = GameLogic.getCurrentController()
# get the shape action actuator attached to the
controller named Mouth
act = controller.actuators["Mouth"]
# set name of the property
act.propName = "Frown"
|