Other great resources: Official JS API docs, Scripting Forum
Â
function eventPlayerLeft(player) { // do stuff }
Number
The ID of the player that left.
Warzone does not process the event handler's return value.
This event only occurs in multiplayer games, where a network peer disconnects from the game:
 If the game host disconnects, the game ends.
You can determine if a game is multiplayer using the isMultiplayer global.
function eventPlayerLeft(id) { console("Player "+id+" just rage quit! (or their internet connection dropped)"); }
Requires:
Jump to: