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:
| Id | Role | Team | Special RPC |
|---|---|---|---|
| 0 | Crewmate | Crewmates | |
| 1 | Impostor | Impostors | Can Vent, Murder |
| 2 | Scientist | Crewmates | |
| 3 | Engineer | Crewmates | Can Vent |
| 4 | Guardian Angel | (Dead) Crewmates | Can Protect |
| 5 | Shapeshifter | Impostors | Can Shapeshift |
Version History
| Version | Change |
|---|---|
| 2021.11.9 | Introduced |
