Overview
Send an in-game message to a specific player, your alliance or everyone.Availability
Warzone 3.2 and above.
Syntax
chat(to,message);
Parameters
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 |
Return value
It's not clear from the C++ code (to me at least) what the return values might be
Example
Send a message to your allies
chat(ALLIES,"Hello friends");
Send a message to player 2
// remember that players are zero-referenced, so player #1 = 0, player #2 = 1, etc. chat(1,"Hello player 2");
See also
- Chat Scope – constants relating to chat messages
- eventChat() – receive chat messages