/// === History ===
/// ** 1.0.10 **
/// - chg: CAiMissionCommand updated to 1.0.1: set limits per army
/// - chg: CMissionPlayers updated to 1.0.1
Previously the ability to order AI mission could only be limited by the combined number of players of both sides (e.g. no more Ai missions when there are more than 30 players on the server).
Following a suggestion of BlacKnight, this can alternatively now also be limited by the number of players on each side and allow both sides to run AI missions simultaneously:
Code:
/// Set a max player (player's own army) limit beyond which no missions can be ordered (0 for no limit)
/// This overrides SetMaxPlayers: if max players is 30 and there are 25 blue players and 10 red players and
/// you set this to 15 then red will be allowed to start a mission.
m_AiMissionCommand.SetMaxPlayersOwnArmy(15, m_MissionPlayers);
/// Set a maximum of concurrent missions per army
/// This overrides SetMaxConcurrentMissions: if red has 2 missions running and you set this
/// to 2 then blue will still be allowed to start 2 missions.
m_AiMissionCommand.SetMaxConcurrentMissionsPerArmy(1);
Bookmarks