Files
Delta-v/Content.Shared/Follower/Components/FollowerComponent.cs
T
Tayrtahn ec64e169c9 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-03-01 12:46:30 +00: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;
}