static void EndShootSuccess(ref EndShootMessage msg, MyNetworkClient sender) { MyUserControllableGun block = null; MyEntities.TryGetEntityById(msg.EntityId, out block); if (block != null) { block.EndShoot(); } }
static void EndShootSuccess(ref EndShootMessage msg, MyNetworkClient sender) { MyUserControllableGun block = null; MyEntities.TryGetEntityById(msg.EntityId, out block); if (block != null) { block.EndShoot(); if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId, MyTransportMessageEnum.Success); } } }
public MySyncUserControllableGun(MyUserControllableGun block) { m_block = block; }