
- Sends a message to a sensor
subject:
- The subject of the message
- Type: String
- Sends a message to a sensor
subject:
- The subject of the message
- Type: String
- The body of the message.
- Type: String
- Sends a message to a sensor
subject:
- The subject of the message
- Type: String
- The body of the message.
- Type: String
- The name of the object to send the message to.
- Type: String
- Sends a message to a sensor
subject:
- The subject of the message
- Type: String
- The body of the message.
- Type: String
- The name of the object to send the message to.
- Type: String
- The name of the object that the message is coming from.
- Type: String

################## Send a message
# import bge
import bge
# message subject
subject = "Locked Chest"
# Send a message
bge.logic.sendMessage(subject)
################## Send a message
# import bge
import bge
# message subject
subject = "Locked Chest"
# message body
body = "Lock can't be picked."
# Send a message
bge.logic.sendMessage(subject, body)
################## Send a message
# import bge
import bge
# message subject
subject = "Locked Chest"
# message body
body = "Lock can't be picked."
# send message to
to = "Hero"
# Send a message
bge.logic.sendMessage(subject, body, to)
################## Send a message
# import bge
import bge
# message subject
subject = "Locked Chest"
# message body
body = "Lock can't be picked."
# send message to
to = "Hero"
# send message from
from = "Treasure Chest"
# Send a message
bge.logic.sendMessage(subject, body, to, from)