SetRole

This RPC sets a player's role.

It is sent by the host to each player when a round starts to inform them of their role. When a player dies and they become a guardian angel, SetRole is called as well. Its only argument is the id of the new role:

Rpc[44] := roleId:u16;

The next table explains how role ID's are linked to roles and to which team these roles belong:

IdRoleTeamSpecial RPC
0CrewmateCrewmates
1ImpostorImpostorsCan Vent, Murder
2ScientistCrewmates
3EngineerCrewmatesCan Vent
4Guardian Angel(Dead) CrewmatesCan Protect
5ShapeshifterImpostorsCan Shapeshift

Version History

VersionChange
2021.11.9Introduced