...
Excerpt |
---|
Send an in-game message to a specific player, your alliance or everyone. |
...
Availability
Warzone 3.2 and above.
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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 |
Return value
Not know at present. It's not clear from the C++ code (to me at least) what the return values might be
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
chat(ALLIES,"Hello friends"); |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// 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