Skip to content

SubGame\BattleRoyale

Kysune edited this page May 5, 2019 · 2 revisions
const fortnite = await eg.runGame(Fortnite);
const br = await fortnite.runSubGame(ESubGame.BattleRoyale);

Properties

Methods

getStatsForPlayer(user, inputType)

Returns an object of statistics for the Battle Royale mode.

  • user [String] - account's id or display name
  • inputType [EInputType](optional)

Example for EInputType.MouseAndKeyboard

{
  "defaultduo": {
    "kills": 4,
    "score": 3084,
    "playersOutLived": 1428,
    "matchesPlayed": 59,
    "minutesPlayed": 181,
    "placeTop12": 10,
    "lastModified": "2019-02-06T15:46:58.000Z"
  },
  ...
}

getStoreItems()

Returns list of store items.

getStoreFeaturedItems()

Returns list of store featured items

getStoreDailyItems()

Returns list of store daily items

getNews()

Returns an object with list of news for subgame Battle Royale and last modified time.

getTournaments()

Returns an object with list of tournaments and last modified time.

getPlaylist(onlyActive)

Returns an object with list of all game modes and last modified time.

  • onlyActive [Boolean] - set to true if you want get only currently playable game modes.

getSeasonStats(seasonNumber)

  • seasonNumber [Number] - numer of season.