I want a unit to stop when when get a buff, but to keep their orders. I tried using flags such as Suppress movement or disable the move ability. I tried changing movement speed to 0.01 and time scale to 0.01 (effectively zero speed). But when the behavior is removed, they will have lost their orders from before.
However if i set their speed to zero using triggers, they keep their orders and continue them once their speed is reset. But this is causing the "Too many threads"-problem, since i have a trigger that runs whenever a unit's movement speed changes.
Thx SoulFilcher, stun flag worked nicely. Only problem was that the units couldn't recieve any orders, but i fixed that with a condition that waited until the unit didn't the behavior.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want a unit to stop when when get a buff, but to keep their orders. I tried using flags such as Suppress movement or disable the move ability. I tried changing movement speed to 0.01 and time scale to 0.01 (effectively zero speed). But when the behavior is removed, they will have lost their orders from before.
However if i set their speed to zero using triggers, they keep their orders and continue them once their speed is reset. But this is causing the "Too many threads"-problem, since i have a trigger that runs whenever a unit's movement speed changes.
Beware, the previous action in the action que will run ( action currently running), but, further actions are disabled until you resume.
(Im not sure if this only works if you use the " add actions to action que " trigger, i'll have to check later.)
@LaxSalmon: Go Try the new stunned flag in the buff. I believe blizzard created that flag just for it. But I never tested it.
@SoulFilcher: Go
Thx SoulFilcher, stun flag worked nicely. Only problem was that the units couldn't recieve any orders, but i fixed that with a condition that waited until the unit didn't the behavior.