mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
013704a242
commit
dc87aa11ef
7 files changed
+66
-31
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user