usePropBody
usePropBody
gets/sets the body type
Type:
bool
True = 1
Set body type to
Property
False = 0
Set body type to Text
Sample
Code
############### Get usePropBody
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# get body type to Property
prop = health.usePropBody
############### Set usePropBody
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# set body type to Property
health.usePropBody = True
|