GetMapRotationInfo: Difference between revisions
(Added page for GetMapRotationInfo.) |
DrinkyBird (talk | contribs) (3.1 is released, so Devfeature templates have been removed) |
||
Line 1: | Line 1: | ||
{{ACSWarning}} | {{ACSWarning}} | ||
int '''GetMapRotationInfo''' (int ''position'', int ''info'') | int '''GetMapRotationInfo''' (int ''position'', int ''info'') | ||
==Usage== | ==Usage== |
Revision as of 20:31, 12 December 2021
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
int GetMapRotationInfo (int position, int info)
Usage
Retrieves information on a particular entry in the map rotation, indicated by the position parameter. Use 0 to get information on the current map (printed in green when the maplist console command is used). The info parameter can be one of the following:
- MAPROTATION_Name = 0
The name of the map (e.g. "Entryway").
- MAPROTATION_LumpName = 1
The lump name of the map (e.g. "MAP01").
- MAPROTATION_Used = 2
Whether or not this map has already been played. Used maps are printed in red when the maplist console command is used.
- MAPROTATION_MinPlayers = 3
The minimum number of players required to load this level. If this is 0, then there's no minimum limit.
- MAPROTATION_MaxPlayers = 4
The maximum number of players allowed to load this level. If this is 64, then there's no maximum limit.