Files
zzz_REBIRTH__Utils/Scripts/MinEvents/NPCs/MinEventActionGuardHereRebirth.cs
2025-06-04 16:44:53 +09:30

14 lines
571 B
C#

public class MinEventActionGuardHereRebirth : MinEventActionTargetedBase
{
public override void Execute(MinEventParams _params)
{
EntityNPCRebirth entityAlive = _params.Self as EntityNPCRebirth;
if (entityAlive == null) return;
if (entityAlive.LeaderUtils.Owner == null) return;
entityAlive.guardPosition = entityAlive.LeaderUtils.Owner.position;
entityAlive.bWillRespawn = true;
entityAlive.guardLookPosition = entityAlive.LeaderUtils.Owner.position + entityAlive.LeaderUtils.Owner.GetForwardVector();
}
}