Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
This event is triggered each time a new beacon is received. |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
function eventBeacon(x, y, sender, to[, message]) { // do stuff } |
Parameters
Parameter | Type | Mandatory | Description |
---|---|---|---|
x | Number | The x co-ordinate of the beacon. | |
y | Number | The y co-ordinate of the beacon. | |
sender | Number | The id of the player who sent the beacon. | |
to | Number Constant | The id of the player who received the beacon. Or ALLIES if sender sent to allies. | |
message | String | The message associated with the beacon, if applicable. |
Return value
Warzone does not process the event handler return value currently.
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
function eventBeacon(x, y, sender, to, message) { console("Beacon from player +"sender+": "+message); } |
Div | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||
---|---|---|
| ||
See alsoRelated API features:
|