Lyra Team Creation Component
C++ Class: ULyraTeamCreationComponent
(Game State Component)
The Lyra Team Creation Component handles assigning Teams
to players as they join the Game by hooking into Lyra’s custom
OnGameModePlayerInitialized
event.
By default, Lyra assigns the player to the least populated team.
Note that Teams are not created until the high priority On Experience Loaded tasks have completed.
Any actors that want to be team-aware must also be Experience-aware, and wait for On Experience Loaded before trying to do anything other than basic Actor initialization.
High Priority On Experience Loaded
Tasks
- Create Teams
- Assign Players to Teams
Notice: If you have code that requires Teams, you must wait until AFTER
the High Priority On Experience Loaded
tasks have all fired.
That is, you cannot have a high priority task yourself that depends on Teams. The order of high priority callbacks is random, so your task may be called before the teams exist.
If you need to use the Team System, the Normal Priority On Experience Loaded
is the earliest time that you can reliably do so.