Function EnableCreepSleepBJ

Line
3863
Location
blizzard.j
Constant?
no
Type
function
Arguments
boolean enable
Returns
nothing
3863
function EnableCreepSleepBJ takes boolean enable returns nothing
3864
    call SetPlayerState(Player(PLAYER_NEUTRAL_AGGRESSIVE), PLAYER_STATE_NO_CREEP_SLEEP, IntegerTertiaryOp(enable, 0, 1))
3865
3866
    // If we're disabling, attempt to wake any already-sleeping creeps.
3867
    if (not enable) then
3868
        call WakePlayerUnits(Player(PLAYER_NEUTRAL_AGGRESSIVE))
3869
    endif
3870
endfunction