HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Disable autosleep for neutral hostiles.

06-26-2006, 03:27 AM#1
Sardius
Is there mass trigger or gameconstant value that will disable all auto sleep cycles for neutral hostiles, so they don't sleep at night?
06-26-2006, 03:38 AM#2
Naakaloh
Trigger:
Actions
Player - Disable sleeping for all creeps
06-26-2006, 03:47 AM#3
harshateja
You know GUI has search capabilities...
06-26-2006, 05:09 AM#4
Sardius
On a related matter, is it possible to make something permantly asleep at all times until a trigger awakes them?
06-26-2006, 12:19 PM#5
StockBreak
Quote:
Originally Posted by Sardius
On a related matter, is it possible to make something permantly asleep at all times until a trigger awakes them?
Just use a dummy Sleep spell with 0 duration (infinite duration) and awake it with
Collapse JASS:
call UnitRemoveAbility( yourUnit, yourBuffCode ( for example 'B000' ) )
If you want that the unit can't be "manually" awakened, just set the sleep invulnerability time to 0 (infinite).
06-26-2006, 12:31 PM#6
Captain Griffen
Or you could just use the function right next to the other one...

Trigger:
Unit - Make (Triggering unit) Sleep when unprovoked
06-26-2006, 03:47 PM#7
Sardius
I've tried that trigger, and it doesn't seem to work, because whenever I encounter him he's always awake, and I've not prevoked him yet.