HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Pausing paused units crashes game

07-01-2006, 01:06 AM#1
darkwulfv
Just telling anyone who may not know, if your map crashes and you pause units, check to be sure you used "unpause" (in GUI) or "false" (in JASS). Just saying. Don't get mad at me if you already knew this, I'm not unsulting your intellegence or anything. This could be helpful for somebody somewhere.
07-01-2006, 01:19 AM#2
Rising_Dusk
I've paused already paused units plenty of times.
It's never once crashed for me.
07-01-2006, 01:33 AM#3
darkwulfv
really? Then maybe it was another trigger. Oh well, sorry then. Thought that was the cause, becuase when I looked back it seems like they would be conflicting arguments. Thanks for pointing that out.
07-01-2006, 12:10 PM#4
SFilip
you really cant pause the unit twice.
the pause basically sets the unit's state to paused (true) or unpaused (false)
it would be like crashing when you do something like
set i = 1
set i = 1
07-01-2006, 12:20 PM#5
Rising_Dusk
Actually, a note.
The only thing that changes when you pause a unit twice is it forgets its previous order.

Unit is walking...
PauseUnit (Remembers where it was going)
PauseUnit (Forgets it)
07-01-2006, 01:21 PM#6
iNfraNe
Oooh, thats actually quite convenient :)
07-01-2006, 01:38 PM#7
shadow1500
You can just order the unit to stop after pausing it.