Skip to content

createPlayer(username, platform, session)

Vince edited this page Dec 18, 2020 · 1 revision

Arguments

A valid username, platform, and session object

Functionality

Creates a player object and adds it to the players global array.

Return

Returns a player object:

var player = {
    username: name,
    platform: platform,
    id: <server's profileId>,
    rank: null,
    kills: null,
    deaths: null
}