HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help again

08-09-2003, 08:54 PM#1
c0nnick
I havnt looked very hard yet, but is there a way to detect if a unit is sleeping?
08-09-2003, 09:33 PM#2
lordwiggin
yes im almost 100% positive i think its either under unit or nutrel
08-09-2003, 11:25 PM#3
c0nnick
Unit or nutrel? What are you talking about?
08-09-2003, 11:32 PM#4
hodi
Hm well... :////
Yea I guess this could work... :ggani:
Ok, use a Trigger to put the Unit asleep and set a Variable (SleepyUnittakesanap=1). Now add a second trigger with the Event "unit acc. target" or "unit is attacked" and change the Variable ("SleepyUnittakesanap") back to 0.

hmmemote_sweat

hodi
08-10-2003, 05:59 PM#5
c0nnick
Haha, thanks anyway guys, but I found it. Its in boolean or sumthin.
08-10-2003, 07:41 PM#6
Draco
It's a boolean. Unit X is asleep equal to True/False.