propName
propName
Note:
Leave blank to trigger all
of the network message sensors in the scene.
gets/sets the object that messages will be sent to.
Type: string.
Sample
Code
################## Get propName
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# get where messages are being sent
obj = health.propName
################## Set propName
# get controller
controller = GameLogic.getCurrentController()
# get message actuator attached to the controller named
Health
health = controller.actuators["Health"]
# send message only to object with name OBPlayer
health.propName = "OBPlayer"
|