sm.message.send
Sends a message to all script instances registered for the given key. Can only be called from server!
Kind: Function
Environments: Game
Game
sm.message.send( messageKey, data )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
messageKey |
string | The message key. |
data (optional) |
any | Optional data to send with the message. |