The AgentBuildData is a great API, we can specify everything we need to create an agent. However when calling Mission.SpawnAgent(AgentBuildData) the final spawned agent can be different from the created AgentBuildData. For example:
- Mission.SpawnAgent overrides AgentBuildData.Age
- MissionNetworkComponent.HandleServerEventCreateAgent overrides the AgentBuildData.AgentBodyProperties with VirtualPlayer.BodyProperties
- MissionNetworkComponent.HandleServerEventCreateAgent overrides the key of AgentBuildData.AgentBanner with MissionPeer.Peer.BannerCode and the colors with CreateAgent.Team.Color
Last edited: