Tile - YGameSession - Restart The Game – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Restart The Game(Rejoin all players)

YlandsTile-230.png

static restartGame(rejoinPlayers: boolean): void;

Parameters

rejoinPlayers

Description

This instruction will restart currently running game. In multiplayer, it will disconnect all players and restart the server.

Restart The Game(Players to rejoin)

YlandsTile-589.png

static restartGame(playersToRejoin: YCharacter[]): void;

Parameters

playersToRejoin

Description

This instruction will restart currently running game. In multiplayer, it will rejoin selected players.