SetPlayerSlotAvailable
- Parameters
whichPlayer playerInitialize target player
control mapcontrolPlayer's slot type
- comment
This function is called in the scope of
configto save map's slots settings in two arrays:bj_slotControlUsed(index playerId, zero-based):trueif player is defined in config (defaults tofalse).bj_slotControl(index playerId, zero-based): value is of typemapcontrolfor user/computer-controlled player (defaults toMAP_CONTROL_USER).
- patch
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
function SetPlayerSlotAvailable takes player whichPlayer, mapcontrol control returns nothing local integer playerIndex = GetPlayerId(whichPlayer) call CheckInitPlayerSlotAvailability() set bj_slotControlUsed[playerIndex] = true set bj_slotControl[playerIndex] = control endfunction