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
- Use x number of Test Players and add them to teams of indexes 1, 2…x respectively
- 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.