public static void RequestMergingCopyPaste(List <MyObjectBuilder_EntityBase> grids, long mergingGridId, MatrixI mergingTransform)
        {
            if (Sync.IsServer)
            {
                MySyncCreate.SendEntitiesCreated(grids);

                MyEntity entity;
                MyEntities.TryGetEntityById(mergingGridId, out entity);

                MyCubeGrid grid = entity as MyCubeGrid;
                Debug.Assert(grid != null);
                if (grid == null)
                {
                    return;
                }

                MyEntity entity2;
                MyEntities.TryGetEntityById(grids[0].EntityId, out entity2);

                MyCubeGrid mergingGrid = entity2 as MyCubeGrid;
                Debug.Assert(mergingGrid != null);
                if (mergingGrid == null)
                {
                    return;
                }

                grid.MergeGrid_CopyPaste(mergingGrid, mergingTransform);
            }
            else
            {
                MySyncCreate.SendMergingCopyPasteRequest(grids, mergingGridId, mergingTransform);
            }
        }
        public static void SendCharacterCreated(MyObjectBuilder_Character character, MyCockpit cockpit)
        {
            MySyncCreate.SendEntityCreated(character);

            AttachToCockpitMsg msg = new AttachToCockpitMsg();

            msg.CharacterEntityId = character.EntityId;
            msg.CockpitEntityId   = cockpit.EntityId;

            Sync.Layer.SendMessageToAll(msg);
        }