Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Scripts/MinEvents/NPCs/MinEventActionGuardThereRebirth.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

12 lines
458 B
C#

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