subject
subject
gets/sets the subject field of the message. Can be used to
filter
messages.
Type: string
Sample
Code
################### Set subject
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# set Subject
health.subject = "Heal"
################### Set subject
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# set Subject
health.subject = "Heal"
|