# guard\_action\_component Attack(Target) crashes the server if the Target is eliminated (removed from scene) and you try to GetSuccess\[\]

**URL:** <https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907>\
**Category:** Issues and Bug Reporting\
**Tags:** id, slug, fixed, name\
**Created:** [January 30, 2026, 2:50am UTC](https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907 "2026-01-30T02:50:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquareCylinder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SquareCylinder](https://forums.unrealengine.com/u/SquareCylinder)\
**Post date:** [January 30, 2026, 2:50am UTC](https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907/1 "2026-01-30T02:50:58Z")

</div>

### Summary

Waiting on the guard\_action\_component’s Attack function to finish will crash the server if the entity set as the target is removed from scene. Similar to the bug experienced and reported here [The guard\_action\_component does not properly return an ai\_action\_error\_type result and will crash the server](https://forums.unrealengine.com/t/the-guard-action-component-does-not-properly-return-an-ai-action-error-type-result-and-will-crash-the-server/2695120) but with the opposite effect. This time, if the entity/component that is removed from scene that is performing the GAC.Attack(), the proper ai\_action\_error\_type.Cancel gets fired and we see the function end.  
What is different this time however, if the entity that is the target of GAC.Attack(TargetEntity) is removed from scene, ie. the agent is eliminated and you try to listen for the `Result.GetSuccess[]`, this crashes the server. Even though the result success\_type is void, a decides function should still pass. This crashing is not intended behavior.  
Found because I was trying to get npcs to re-initate a follow and attack for a few seconds pattern. This is the code that will trigger the server crashing.

```verse
if(FC := AgentAndActionComp(0).GetFortCharacter[]): # Just make sure agent is alive and in world space to navigate to
    Target := MakeNavigationTarget(AgentAndActionComp(0))
    NavResult := Action.NavigateTo(Target, ?MovementType := MovementType)
    Action.Idle(?Duration := 0.5) # Wait before shooting
    if(FCE := FC.GetEntity[], AgentAndActionComp(1).IsSimulating[]):
        Result := Action.Attack(FCE)
        Print("Hello World") # <- This will show as (Rolling Back) Hello World when the server crashes
        if(ErrorType := Result.GetError[]):
            Print("Attack Error: {ErrorType}") # Only shows if Attacking NPC Dies (After about 5 seconds)
        if(Result.GetSuccess[]): # Crashes when the FCE is Eliminated
            Print("Attack Success") # Never shows

```

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

Have an npc spawner with default behavior type Guard  
Get guard\_action\_component  
something like Result := GAC.Attack(Target)  
eliminate target, either by letting the guard do it or you can  
check `if(Result.GetSuccess[])`  
Game Crashes

### Expected Result

I would expect the result of the GAC.Attack(Target) so be successful or canceled once the entity is no longer a viable target. Either works in this case, as long as it doesn’t crash the server. Since it is crashing at checking the Success, this should still pass because the GetSuccess is a decides function it just needs to not fail to succeed.

### Observed Result

When the entity is destroyed/eliminated during the GAC.Attack(Target) function, the server crashes.

### Platform(s)

Windows/UEFN/PC

### Upload an image

 ![Screenshot 2026-01-29 213730.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/2/c527c33af0b2de6879e92088590e0830e9a3b463.png)

### Video

[https://streamable.com/w8zxlb](https://streamable.com/w8zxlb)

### Additional Notes

This will happen regardless of how the entity is destroyed, as long as it happens during the GAC.Attack(Target) method is executing.

---

<div class="post-metadata">

**Author:** ![FrozenInMTL\_Epic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frozeninmtl_epic/32/1181579_2.png) [@FrozenInMTL\_Epic](https://forums.unrealengine.com/u/FrozenInMTL_Epic)\
**Post date:** [February 19, 2026, 2:02pm UTC](https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907/7 "2026-02-19T14:02:02Z")

</div>

Hello this should be fixed in 39.50, thanks for reporting it!

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [June 15, 2026, 9:01pm UTC](https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907/8 "2026-06-15T21:01:07Z")

</div>

FORT-1048718 is ‘Closed’ as ‘Fixed’. The issue will be addressed in 39.50.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 29, 2026, 2:51am UTC](https://forums.unrealengine.com/t/guard-action-component-attack-target-crashes-the-server-if-the-target-is-eliminated-removed-from-scene-and-you-try-to-getsuccess/2695907/9 "2026-07-29T02:51:18Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
