Send an in-game message to a specific player, your alliance or everyone. |
chat(to, message); |
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
to | Number, Constant | Who should the message be sent to?
| 3.2 | |
message | String | The message to send to the recipient. | 3.2 |
When you send a chat message to another player, it will echo the message to your own eventChat().
chat(ALLIES, "Hello friends"); |
// remember that players are zero-referenced, so player #1 = 0, player #2 = 1, etc. chat(1, "Hello player 2"); |
AvailabilityRequires:
|
ContentsJump to: |
See alsoRelated API features:
Add-on APIs: |