Other great resources: Official JS API docs, Scripting Forum
eventBeaconRemoved()
This event is triggered each time a beacon is removed.
Syntax
function eventBeaconRemoved(sender, to) {
// do stuff
}Parameters
Parameter | Type | Mandatory | Description |
|---|---|---|---|
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. |
Return value
Warzone does not process the event handler return value currently.
Notes
Only triggered when a script removes its beacon. Human beacons can't currently be removed by the human, they "expire" after a set amount of time.
Example
function eventBeaconRemoved(sender, to) {
console("Player "+sender+"'s beacon was removed");
}