This commit is contained in:
Gurge44 committed 2025-08-30 10:46:43 +02:00
1 parent 013704a242
commit dc87aa11ef
7 files changed
+66 -31

No files matched your search

+1 -1
View File
@@ -352,7 +352,7 @@ internal static class ExtendedPlayerControl
}
// If you use vanilla RpcSetRole, it will block further SetRole calls until the next game starts.
private static void RpcSetRoleGlobal(this PlayerControl player, RoleTypes roleTypes)
public static void RpcSetRoleGlobal(this PlayerControl player, RoleTypes roleTypes)
{
if (AmongUsClient.Instance.AmClient) player.StartCoroutine(player.CoSetRole(roleTypes, true));
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(player.NetId, (byte)RpcCalls.SetRole, SendOption.Reliable);