class Roster

Roster

Contains data about a player

[source]

fields

Roster.name

Roster.name : string

Roster.playerID

Roster.playerID : integer

Roster.teamID

Roster.teamID : integer

Roster.allyTeamID

Roster.allyTeamID : integer

Roster.spectator

Roster.spectator : boolean

Roster.cpuUsage

Roster.cpuUsage : number

in order to find the progress, use: cpuUsage&0x1 if it’s PC or BO, cpuUsage& 0xFE to get path res, (cpuUsage»8)*1000 for the progress

Roster.pingTime

Roster.pingTime : number

if -1, the player is pathfinding