SlashCo Wiki

GetRandomMap

 string GetRandomMap( number plyCount )

Description

Selects a random map that supports the specified number of players.
If no suitable map can be selected, this return "error"

Arguments

1number plyCount

The number of players that need to be supported by the selected map.

Returns

1string mapName

The name of a randomly selected suitable map, or "error" if no suitable map could be selected.