Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
Excerpt |
---|
Send an in-game message to a specific player, your alliance or everyone. |
Availability
...
Syntax
Code Block | |
---|---|
|
...
| |||||
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
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"); |
Div | ||
---|---|---|
| ||
AvailabilityRequires:
|
Div | ||
---|---|---|
| ||
See alsoRelated API features: |
...
|