protected virtual void UpdateInternal() { m_navigation.Update(m_botMemory.TickCounter); m_botLogic.Update(); if (m_joinRequestSent == false && m_botDefinition.FactionTag != null && m_botDefinition.FactionTag.Length > 0) { var upper = m_botDefinition.FactionTag.ToUpperInvariant(); var desiredFaction = MySession.Static.Factions.TryGetFactionByTag(upper); if (desiredFaction == null) { return; } var identityId = AgentEntity.ControllerInfo.ControllingIdentityId; var faction = MySession.Static.Factions.TryGetPlayerFaction(identityId); if (faction == null && !m_joinRequestSent) { MyFactionCollection.SendJoinRequest(desiredFaction.FactionId, identityId); m_joinRequestSent = true; } } }
protected virtual void UpdateInternal() { m_navigation.Update(); AgentActions.AiTargetBase.Update(); m_botLogic.Update(); }