Jass:GetPlayersByMapControl
Aus Mappedia
| Funktion: GetPlayersByMapControl | |
|---|---|
| Parameter: | mapcontrol |
| Rückgabewert: | force |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function GetPlayersByMapControl takes mapcontrol whichControl returns force local force f = CreateForce() local integer playerIndex local player indexPlayer set playerIndex = 0 loop set indexPlayer = Player(playerIndex) if GetPlayerController(indexPlayer) == whichControl then call ForceAddPlayer(f, indexPlayer) endif set playerIndex = playerIndex + 1 exitwhen playerIndex == bj_MAX_PLAYER_SLOTS endloop return f endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| mapcontrol | whichControl |
