Part 2 of Spawn NPCs video series all about teams: Define NPC teams that players can't join. Remove that team from scoring logic and give NPCs a name! This process is useful for controlling how NPCs and their teams should affect gameplay. I can't believe how many times I said "teams". Game on!
Part 1 at : [ Ссылка ]
Part 3 at : [ Ссылка ]
C++ GitHub code at : [ Ссылка ]
Commit : [ Ссылка ]
Engine version : Unreal Engine 5.2
Project version : Lyra 5.2 sample project.
Join my Patreon to get video credits and if you'd like to give thanks!
[ Ссылка ]
Thanks for watching!
---------------
Timestamps:
00:00 - Intro
00:29 - Define the NPC only teams
09:24 - Elimination feed : player names and clear up warnings
12:27 - Find where the name of the Player is set
18:32 - Don't take into account NPC teams for scoring
30:51 - Fix anyone gets an assist for NPC kill
32:47 - Health component : don't show NPC AI kills in the feed
35:09 - Results and next video info
![](https://s2.save4k.ru/pic/aGz9Jmapq7I/maxresdefault.jpg)