diff --git a/Robust.Client/ViewVariables/ViewVariablesCommand.cs b/Robust.Client/ViewVariables/ViewVariablesCommand.cs index fee4e11b8..3bba370b8 100644 --- a/Robust.Client/ViewVariables/ViewVariablesCommand.cs +++ b/Robust.Client/ViewVariables/ViewVariablesCommand.cs @@ -92,7 +92,8 @@ namespace Robust.Client.ViewVariables var entityManager = IoCManager.Resolve(); if (!entityManager.EntityExists(entity)) { - shell.WriteLine("That entity does not exist."); + shell.WriteLine("That entity does not exist locally. Attempting to open remote view..."); + vvm.OpenVV(new ViewVariablesEntitySelector(entity)); return; } diff --git a/Robust.Shared/GameObjects/EntityUid.cs b/Robust.Shared/GameObjects/EntityUid.cs index 454249c10..0d1789607 100644 --- a/Robust.Shared/GameObjects/EntityUid.cs +++ b/Robust.Shared/GameObjects/EntityUid.cs @@ -196,6 +196,10 @@ namespace Robust.Shared.GameObjects private TransformComponent? Transform => IoCManager.Resolve().GetComponentOrNull(this); + // This might seem useless, but it allows you to retrieve remote entities that don't exist on the client. + [ViewVariables] + private EntityUid Uid => this; + #endregion } }