Triggers if a player leaves the game... |
function eventPlayerLeft(player) { // do stuff } |
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
player | Number | ![]() | The ID of the player that left. | 3.2 |
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)"); } |
Availability Requires:
|
ContentsJump to: |