MakeUnitsPassiveForPlayer

Parameters
whichPlayer player
return type
nothing
Source code
function MakeUnitsPassiveForPlayer takes player whichPlayer returns nothing
    local group   playerUnits = CreateGroup()
    call CachePlayerHeroData(whichPlayer)
    call GroupEnumUnitsOfPlayer(playerUnits, whichPlayer, null)
    call ForGroup(playerUnits, function MakeUnitsPassiveForPlayerEnum)
    call DestroyGroup(playerUnits)
endfunction
Source
Blizzard.j
wc3modding.com
MakeUnitsPassiveForPlayer