Represents information about a player, including any cosmetics they have equipped,
whether they are dead or the impostor, their role and whatever tasks they have.
Get an outfit from this player, or create it from the player's default base
outfit if it doesn't exist, or create a new one entirely if that doesn't
exist.
A collection of this player's outfits as they should be displayed.
Somewhat of a layer system, the Default outfit shouldn't be displayed
if there is another outfit in this object.
Which player this role is. Note that this is not their actual instance
of this role, see role, but is instead the class
used to create the instance, and holds metadata about the role, such as
the team it is for and whether it's a role for ghosts or not.
You can use this to know what class role will be an
instance of.
Example
if (player.playerInfo.roleType === ImpostorRole) { player.roleinstanceofImpostorRole// true }
A collection of this player's outfits as they should be displayed.
Somewhat of a layer system, the Default outfit shouldn't be displayed
if there is another outfit in this object.
Which player this role is. Note that this is not their actual instance
of this role, see role, but is instead the class
used to create the instance, and holds metadata about the role, such as
the team it is for and whether it's a role for ghosts or not.
You can use this to know what class role will be an
instance of.
Example
if (player.playerInfo.roleType === ImpostorRole) { player.roleinstanceofImpostorRole// true }
Represents information about a player, including any cosmetics they have equipped, whether they are dead or the impostor, their role and whatever tasks they have.