Code: Select all
Spring.Echo("[Default Mex Layout] Map size is: " .. mapx + mapz)
local players = Spring.GetPlayerList()
local count = 0
for i = 1, #players do
local playerID = players[i]
if not select(3, Spring.GetPlayerInfo(playerID)) then
count = count + 1
end
end
Spring.SetGameRulesParam("peopleCount", count)
teamIDCount = Spring.GetGameRulesParam("peopleCount")
Spring.Echo("[Default Mex Layout] Number of teamIDs in this match: " .. teamIDCount)