static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender) { sync.Entity.StopSound(); if (Sync.IsServer) { Sync.Layer.SendMessageToAll(msg); } }
public void SendStopSoundRequest() { if (!Entity.IsWorking) { return; } StopSoundMsg msg = new StopSoundMsg(); msg.EntityId = Entity.EntityId; Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request); }
public void SendStopSoundRequest() { if (!Entity.IsWorking) return; StopSoundMsg msg = new StopSoundMsg(); msg.EntityId = Entity.EntityId; Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request); }
static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender) { sync.Entity.StopSound(); if (Sync.IsServer) Sync.Layer.SendMessageToAll(msg); }