public void RemoveWaypoints(int[] waypointIndexes)
            {
                if (m_syncing)
                {
                    return;
                }

                var msg = new RemoveWaypointsMsg();
                msg.EntityId = m_remoteControl.EntityId;

                msg.WaypointIndexes = waypointIndexes;

                Sync.Layer.SendMessageToServerAndSelf(ref msg);
                m_syncing = true;
            }
 private static void OnRemoveWaypoints(MySyncRemoteControl sync, ref RemoveWaypointsMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnRemoveWaypoints(msg.WaypointIndexes);
     sync.m_syncing = false;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId);
     }
 }
 private static void OnRemoveWaypoints(MySyncRemoteControl sync, ref RemoveWaypointsMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnRemoveWaypoints(msg.WaypointIndexes);
     sync.m_syncing = false;
 }