# Test Players make fort\_team\_collection.GetAgents unreliable

**URL:** <https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fixed, bug-report, fortnite\
**Created:** [February 21, 2025, 5:21pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997 "2025-02-21T17:21:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZeroYaHero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroYaHero](https://forums.unrealengine.com/u/ZeroYaHero)\
**Post date:** [February 21, 2025, 5:21pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/1 "2025-02-21T17:21:37Z")

</div>

### Summary

When using Test Players and changing their team via devices such as the `class_and_team_selector_device` and Verse classes like `fort_team_collection` and its `AddToTeam` function, the Test Players do not seem to be removed/garbage collected from the team once the game ends.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

AI

### Steps to Reproduce

1. Use x number of Test Players and add them to teams of indexes 1, 2…x respectively
2. Print how many players are on each of these teams using `fort_team_collection.GetAgents`

### Expected Result

It should evaluate (and it does for the first time) to 1 agent per team (ignoring our own player/pawn and their team).

### Observed Result

If you end game and start again this same logic will execute, but the number of agents on those teams will now be 2 each.  
If you repeat it _again_ it will be 3 agents per team, and so on. Demonstrating linear growth in team members.

### Platform(s)

windows

### Current Workaround

The current workaround I have found is to exit session in UEFN and start a session again.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [February 21, 2025, 10:17pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/4 "2025-02-21T22:17:02Z")

</div>

Hi Zero, we’re checking into this.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 22, 2025, 5:13am UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/5 "2025-02-22T05:13:36Z")

</div>

Hey @ZeroYaHero does just filtering each agent with. IsActive filter out the broken agents?

---

<div class="post-metadata">

**Author:** ![ZeroYaHero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroYaHero](https://forums.unrealengine.com/u/ZeroYaHero)\
**Post date:** [February 22, 2025, 9:13pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/6 "2025-02-22T21:13:14Z")

</div>

It potentially does. I could not verify with my project since it does not operate in a way where it can expect/assume the fort\_character to be active (doing a lot of respawning with Verse).

---

<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:** [August 20, 2025, 5:21pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/7 "2025-08-20T17:21:39Z")

</div>

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

---

<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:** [August 5, 2026, 3:00pm UTC](https://forums.unrealengine.com/t/test-players-make-fort-team-collection-getagents-unreliable/2348997/8 "2026-08-05T15:00:27Z")

</div>

FORT-864233 is ‘Closed’ as ‘Fixed’. The issue will be addressed in 34.20.
