static void OnChangeControllable(MySyncMotorSuspension sync, ref SteeringMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Steering = msg.Steering;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAllButOne(ref msg,sender.SteamUserId);
     }
 }
Beispiel #2
0
 static void OnChangeControllable(MySyncMotorSuspension sync, ref SteeringMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Steering = msg.Steering;
 }
        public void ChangeSteering(bool value)
        {
            var msg = new SteeringMsg();
            msg.EntityId = Entity.EntityId;
            msg.Steering = value;

            Sync.Layer.SendMessageToServerAndSelf(ref msg);
        }
 static void OnChangeControllable(MySyncMotorSuspension sync, ref SteeringMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Steering = msg.Steering;
 }