Function MakeUnitsPassiveForTeam
| 5370 | function MakeUnitsPassiveForTeam takes player whichPlayer returns nothing |
| 5371 | local integer playerIndex |
| 5372 | local player indexPlayer |
| 5373 | |
| 5374 | set playerIndex = 0 |
| 5375 | loop
|
| 5376 | set indexPlayer = Player(playerIndex) |
| 5377 | if PlayersAreCoAllied(whichPlayer, indexPlayer) then |
| 5378 | call MakeUnitsPassiveForPlayer(indexPlayer) |
| 5379 | endif
|
| 5380 | |
| 5381 | set playerIndex = playerIndex + 1 |
| 5382 | exitwhen playerIndex == bj_MAX_PLAYERS |
| 5383 | endloop
|
| 5384 | endfunction
|