Files
tbd-station-14/Content.Shared/Follower/Components/FollowerComponent.cs
Tayrtahn 46b19291ea Fix followers getting sent to nullspace when target is polymorphed (#33878)
* Add an event for polymorph actions

* Subscribe FollowerSystem to the event

* Add check that unfollow target is actually current target.

* Make followers try to follow on state update; Dirty follower on follow.
2025-02-11 22:34:24 +01:00

13 lines
359 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Follower.Components;
[RegisterComponent]
[Access(typeof(FollowerSystem))]
[NetworkedComponent, AutoGenerateComponentState(RaiseAfterAutoHandleState = true)]
public sealed partial class FollowerComponent : Component
{
[AutoNetworkedField, DataField("following")]
public EntityUid Following;
}