player(id) -> a Player , method of UB

Get the player identified by its number.

Parameters:
name type description
id int identifier of the player (and also controller)
Returns

a Player instance.

// get the player from the playerJoined event

var who = UB.player(event.data.playerID);

See all methods of the api.