Upload from upload_mods.ps1
This commit is contained in:
14
Scripts/MinEvents/NPCs/MinEventActionGuardHereRebirth.cs
Normal file
14
Scripts/MinEvents/NPCs/MinEventActionGuardHereRebirth.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user