From 07c65474cb1107a07e73a670b344603f41001ccb Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Tue, 9 Nov 2021 12:38:25 +0100 Subject: [PATCH] LocalPlayer EntityUid --- Robust.Client/Player/LocalPlayer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Robust.Client/Player/LocalPlayer.cs b/Robust.Client/Player/LocalPlayer.cs index b80504f86f..3b183d2f66 100644 --- a/Robust.Client/Player/LocalPlayer.cs +++ b/Robust.Client/Player/LocalPlayer.cs @@ -24,11 +24,13 @@ namespace Robust.Client.Player public event Action? EntityDetached; /// - /// Game entity that the local player is controlling. If this is null, the player - /// is in free/spectator cam. + /// Game entity that the local player is controlling. If this is null, the player is not attached to any + /// entity at all. /// [ViewVariables] public IEntity? ControlledEntity { get; private set; } + [ViewVariables] public EntityUid? ControlledEntityUid => ControlledEntity?.Uid; + [ViewVariables] public NetUserId UserId { get; set; }