body
body
gets/sets the message body.
Type: String
Sample
Code
################ Get body
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# get message body
mess = health.body
################ Set body
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# set message body
health.body = "Your message here"
|