EnableCreepSleepBJ
- Parameters
-
enable boolean
- comment
- patch
1.07
- Source
- Blizzard.j
- return type
nothing
- Source code
function EnableCreepSleepBJ takes boolean enable returns nothing call SetPlayerState(Player(PLAYER_NEUTRAL_AGGRESSIVE), PLAYER_STATE_NO_CREEP_SLEEP, IntegerTertiaryOp(enable, 0, 1)) // If we're disabling, attempt to wake any already-sleeping creeps. if (not enable) then call WakePlayerUnits(Player(PLAYER_NEUTRAL_AGGRESSIVE)) endif endfunction