Summary
If an AI eliminates another AI, you can pass that Agent into the Activate(Agent) but it will not update the top center HUD. I am not sure if this is an issue where the scoreboard does not update unless a player is involved or the score manager device does not update the scoreboards correctly.
The elimination manager also has a similar issue where only players eliminations are counted. Not sure if this is on purpose or an oversight.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
Place a score manager
-Set it to add 1 score
Place elimination manager
-Subscribe EliminationEvent() to award score to the agent/agents team via Activate(Agent)
Activate top center HUD
Have 1 NPC spawner be for team 1, another for team 2
The NPC’s eliminate one another
The scoreboard doesn’t change
If the player eliminates an NPC, the scoreboard updates
Expected Result
The scoreboard updates that corresponding teams score when the AI gets an elimination.
Observed Result
The scoreboard doesn’t update when an NPC gets an elimination
Platform(s)
PC
Additional Notes
This wouldn’t be that big of a deal but everything uses the built in score. It seems like that score manager device is outdated so maybe it doesn’t work well with the NPC Spawner Device. Also here is the code for more clarity. It all goes through the only thing that doesnt work is the score awarded when an NPC is passed into the agent. However, when its a player it does just fine.
GrantScoreElimination(MaybeAgent:?agent):void=
if(Agent := MaybeAgent?):
Print("Passed Agent Check")
TeamCollection := GetPlayspace().GetTeamCollection()
AllTeams := TeamCollection.GetTeams()
if:
Team1 := AllTeams[0]
Team2 := AllTeams[1]
then:
if(TeamCollection.IsOnTeam[Agent,Team1]):
Print("Checked agent, they are team 1")
Print("Applying Score")
Team1ScoreManager.Activate()
else:
if(TeamCollection.IsOnTeam[Agent,Team2]):
Print("Checked agent, they are team 2")
Print("Applying Score")
Team2ScoreManager.Activate()
else:
Print("Agent didn't have a team")