# GetAgents function from FortTeamCollection bugged

**URL:** <https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138>\
**Category:** Issues and Bug Reporting\
**Tags:** bugs, bug, unreal-editor-for-fortnite, Code, bug-report, fortnite\
**Created:** [June 27, 2023, 11:36am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138 "2023-06-27T11:36:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nachetoncio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nachetoncio/32/712931_2.png) [@nachetoncio](https://forums.unrealengine.com/u/nachetoncio)\
**Post date:** [June 27, 2023, 11:36am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/1 "2023-06-27T11:36:24Z")

</div>

Hello,

I might have found a bug with the _GetAgents(InTeam:team)_ function of the _fort\_team\_collection_ interface. The case is the following:

We started with 4 members at the same team in a uefn session, and the GetAgents function returned 4 members. So far so good. But then 1 member quit the session and the _GetAgents_ function is called again but this time it still returned 4 members. So maybe the array is not being updated or something, but until session is finished, players are not being removed when calling this function.

Anyone has experienced this?

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [June 27, 2023, 11:52am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/2 "2023-06-27T11:52:25Z")

</div>

Hey, yep I already opened this topic [GetAgents[] returns more players than I have on the session](https://forums.unrealengine.com/t/getagents-returns-more-players-than-i-have-on-the-session/1149469)

Not sure it has been looked at though!

---

<div class="post-metadata">

**Author:** ![nachetoncio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nachetoncio/32/712931_2.png) [@nachetoncio](https://forums.unrealengine.com/u/nachetoncio)\
**Post date:** [June 27, 2023, 11:54am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/3 "2023-06-27T11:54:44Z")

</div>

Oh, sorry, didn’t noticed.

Thank you for answering!!!

---

<div class="post-metadata">

**Author:** ![Stevie-Moon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stevie-moon/32/701656_2.png) [@Stevie-Moon](https://forums.unrealengine.com/u/Stevie-Moon)\
**Post date:** [June 27, 2023, 1:19pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/4 "2023-06-27T13:19:26Z")

</div>

@nachetoncio Thank you for your report! We would like to look into this further, would you be able to submit a bug report using the form available here? [Fortnite Creative](https://creative.fortnite.com/s/bug-report)

---

<div class="post-metadata">

**Author:** ![nachetoncio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nachetoncio/32/712931_2.png) [@nachetoncio](https://forums.unrealengine.com/u/nachetoncio)\
**Post date:** [June 28, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/5 "2023-06-28T14:10:37Z")

</div>

Submitted!

---

<div class="post-metadata">

**Author:** ![soulwizard7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soulwizard7](https://forums.unrealengine.com/u/soulwizard7)\
**Post date:** [July 14, 2023, 10:50am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/6 "2023-07-14T10:50:02Z")

</div>

I found your post after I ran into a similar issue. My game when starting with 2 players and 2 teams with one on each team, returns 2 agents for team one, and 1 agent for team 2. Interestingly, when a round ends I swap teams with the rotate teams function, it returns 1 agent for team 1 and 2 agents for team 2. Seems I have a ghost player.

---

<div class="post-metadata">

**Author:** ![Clevereen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clevereen/32/728648_2.png) [@Clevereen](https://forums.unrealengine.com/u/Clevereen)\
**Post date:** [August 1, 2023, 1:53pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/7 "2023-08-01T13:53:50Z")

</div>

We ran into the same issue. And even if there is one player left, the GetAgents will still count 4. Its not reset!

---

<div class="post-metadata">

**Author:** ![dudee236](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dudee236](https://forums.unrealengine.com/u/dudee236)\
**Post date:** [August 14, 2023, 7:21pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/8 "2023-08-14T19:21:19Z")

</div>

I second this. It has to be reworked immediately it’s a very important function and it’s still broken.

---

<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:** [February 23, 2024, 11:39pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/9 "2024-02-23T23:39:13Z")

</div>

UCB-1297 incident has been created. Status is ‘Awaiting Validation’.

---

<div class="post-metadata">

**Author:** ![PerspiringNerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PerspiringNerd](https://forums.unrealengine.com/u/PerspiringNerd)\
**Post date:** [February 24, 2024, 12:56am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/10 "2024-02-24T00:56:09Z")

</div>

Did this ever get fixed? It totally wrecked my game that I released that was reliant on this function to check team sizes.

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [February 27, 2024, 1:28pm UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/11 "2024-02-27T13:28:28Z")

</div>

I don’t think it got fixed yet :')

---

<div class="post-metadata">

**Author:** ![Solsboer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Solsboer](https://forums.unrealengine.com/u/Solsboer)\
**Post date:** [June 30, 2024, 10:46am UTC](https://forums.unrealengine.com/t/getagents-function-from-fortteamcollection-bugged/1212138/12 "2024-06-30T10:46:47Z")

</div>

it is still not fixed…
