public static void Test(GameObject gameObject) { try { VRC.Network.RPC(VRC_EventHandler.VrcTargetType.AllBufferOne, gameObject, "initUSpeakSenderRPC", new IntPtr[] { IL2Import.CreateNewObject(rand.Next(0, 25), BlazeTools.IL2SystemClass.Int32) }); } catch { } }
public static GameObject SpawnPortal(Vector3 Position) { GameObject gameObject = VRC.Network.Instantiate(VRC_EventHandler.VrcBroadcastType.Always, "Portals/PortalInternalDynamic", Position, new Quaternion(0, 0, 0, 0)); if (gameObject == null) { return(null); } VRC.Network.RPC(VRC_EventHandler.VrcTargetType.AllBufferOne, gameObject, "ConfigurePortal", new IntPtr[] { IL2Import.StringToIntPtr("wrld_a61806c2-4f5c-4c00-8aae-c5f6d5c3bfde"), IL2Import.il2cpp_string_new_len("Banned Instance\nTupper\0", "Banned Instance\nTupper\0".Length), IL2Import.CreateNewObject(0, BlazeTools.IL2SystemClass.Int32) }); return(gameObject); }