Test Players make fort_team_collection.GetAgents unreliable

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.

FORT-864233 has been added to our ‘To Do’ list. Someone’s been assigned this task.

Hi Zero, we’re checking into this.

1 Like

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

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).