The search keyword must be a single word (no spaces).
Function SetPlayerColorBJ
- Line
- 8135
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- player whichPlayer, playercolor color, boolean changeExisting
- Returns
- nothing
| 8135 | function SetPlayerColorBJ takes player whichPlayer, playercolor color, boolean changeExisting returns nothing |
| 8136 | local group g |
| 8137 | |
| 8138 | call SetPlayerColor(whichPlayer, color) |
| 8139 | if changeExisting then |
| 8140 | set bj_setPlayerTargetColor = color |
| 8141 | set g = CreateGroup() |
| 8142 | call GroupEnumUnitsOfPlayer(g, whichPlayer, null) |
| 8143 | call ForGroup(g, function SetPlayerColorBJEnum) |
| 8144 | call DestroyGroup(g) |
| 8145 | endif
|
| 8146 | endfunction
|