Summary
I use a for loop to check all of the npcs on a specific team, but when adding a npc definition to them for a custom model it causes my code to fail. Not to mention that when trying to assign a npc with a npc definition to a team it will always fail. Using both verse and a class and team selector device. Here is a brief snipbit of my code:
AllTeams := GetPlayspace().GetTeamCollection().GetTeams()
var AgentsOnAttackTeam : team = AllTeams[2]
if:
Agents := GetPlayspace().GetTeamCollection().GetAgents[AgentsOnAttackTeam]
then:
if(AgentLogicNum > 0):
for(Agent : Agents, AgentFortChar := Agent.GetFortCharacter[], AgentFortChar.IsActive[]):
This worked fine until I added the npc definition
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Character
Steps to Reproduce
Attempt to assign an npc to a team. Then attempt to assign the same npc with a npc definition to a team.
Expected Result
For the npc with a npc definition to be locatable in my Agents array to be on team 3.
Observed Result
Its almost as if the npc doesn’t exist on the respective team
Platform(s)
PC