12 lines
458 B
C#
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();
|
|
}
|
|
} |