HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to avoid units' freezing issuing orders

02-06-2007, 11:30 AM#1
StockBreak
Is there any way to avoid a unit's freezing using the function:
Collapse JASS:
IssueImmediateOrder( gg_unit_U000_0096, "berserk" )
If the unit uses it manually, it doesn't interrupt orders but the unit will freeze if the order is given by triggers. I searched among other posts but I couldn't find a solution. Thanks!
02-06-2007, 01:26 PM#2
vesuvan doppleganger
have you tried pausing the unit, ordering it to stop, unpausing it, and then ordering the unit?
02-06-2007, 04:53 PM#3
StockBreak
Quote:
Originally Posted by vesuvan doppleganger
have you tried pausing the unit, ordering it to stop, unpausing it, and then ordering the unit?
I tried this but it didn't work, maybe you didn't understand my question: I want my unit to AVOID freezing when an instant spell (like berserker) is issued with triggers. The only way is to store into variables the current order restoring it later? Thanks.
02-06-2007, 05:57 PM#4
wyrmlord
I don't seem to have that problem when I use that effect through triggers. I just gave the unit the ability, made them cast it, then removed it, and if the unit was moving it kept on moving.
02-06-2007, 06:32 PM#5
StockBreak
Quote:
Originally Posted by wyrmlord
I don't seem to have that problem when I use that effect through triggers. I just gave the unit the ability, made them cast it, then removed it, and if the unit was moving it kept on moving.
What ability do you use?
If my unit has berserk and I issue it to cast while it's doing another action, the unit will stop and won't continue doing any action (if you use berserk manually the unit doesn't stop at all). Thanks.
02-06-2007, 09:50 PM#6
shadow1500
If the unit is selected by the player, try using ForceUIKey locally to press the berserk ability hotkey.
02-07-2007, 08:31 AM#7
StockBreak
Quote:
Originally Posted by shadow1500
If the unit is selected by the player, try using ForceUIKey locally to press the berserk ability hotkey.
Yes, I knew that workaround, but it is very probable that the unit will not be selected by the player... Thanks.
02-07-2007, 02:22 PM#8
WNxCryptic
Depending on the type of spell you're using, the ability activation might interrupt the movement on the unit...

If you're the only one having this issue, perhaps you're simply working with an ability that, when activated, automatically interrupts the movement of the unit.
02-08-2007, 07:00 AM#9
Guest
Quote:
Originally Posted by StockBreak
If my unit has berserk and I issue it to cast while it's doing another action, the unit will stop and won't continue doing any action (if you use berserk manually the unit doesn't stop at all). Thanks.
02-09-2007, 12:45 AM#10
BBDino
Quote:
Originally Posted by WNxCryptic
Depending on the type of spell you're using, the ability activation might interrupt the movement on the unit...

If you're the only one having this issue, perhaps you're simply working with an ability that, when activated, automatically interrupts the movement of the unit.

:Palmface:

Seriously people, read the posts!
02-09-2007, 08:31 AM#11
StockBreak
Quote:
Originally Posted by WNxCryptic
Depending on the type of spell you're using, the ability activation might interrupt the movement on the unit...

If you're the only one having this issue, perhaps you're simply working with an ability that, when activated, automatically interrupts the movement of the unit.
As most people know, Berserker does NOT interrupt a unit's movement if used manually. If you order it by trigger it will stop the movement, why?