I'm no expert on abilities, but I think you can do this with a trigger.
EVENT - When [Your Unit] casts an ability
CONDITION - Ability being cast equal to [Freeze]
ACTION - Wait 1.5 sec (The time it takes for the impact of the ability to land on the target)
ACTION - Pause [Target unit of ability being cast] (This freezes the target completely, not being able to move, attack or use abilities untill it's unpaused)
ACTION - Attach [Actor] to [Target unit of ability being cast] (For the graphical effect of the freeze, I'm not really sure how it works)
ACTION - Wait 5 sec (The time you want the Freeze to last)
ACTION - Unpause [Target unit of ability being cast] (This unfreezes the target again)
Another way would be to give the ability an Apply Behavior Effect that gives the target unit a Buff Behavior that using Modifications+ suppresses its movement, and attack. And of course you can time the buff by giving it a period and a max periods of 1.
Another way would be to give the ability an Apply Behavior Effect that gives the target unit a Behavior that using Modifications+ suppresses its movement, and attack.
This is the preferred method of doing it over using triggers. More reliable.
Any word on how to pause the unit's animations during the effect? What gets me is that there is actually an 'anim pause' actor message, but I can't for the life of me get it to actually work xD
In the same modifications+ tab there are some state flags (near supress movement and supress attack) called stasis and no draw. Did you try either of those?
In behavior modification, there is a field called Time Scale..
Reduce it to 0.01 would make affected unit nearly freeze (MS,AS,Cast speed, whatever are reduced to 0.01)
This is useful to slow down anything, missile is a little too fast to they still move in near normal speed.
Combine with suppress Attack or Movement would make affected unit freeze completely (As its time scale is 0.01 so the animation is freeze too!)
Is it possible to freeze an unit with an ability?
Yes it's possible.
I'm no expert on abilities, but I think you can do this with a trigger.
EVENT - When [Your Unit] casts an ability
CONDITION - Ability being cast equal to [Freeze]
ACTION - Wait 1.5 sec (The time it takes for the impact of the ability to land on the target)
ACTION - Pause [Target unit of ability being cast] (This freezes the target completely, not being able to move, attack or use abilities untill it's unpaused)
ACTION - Attach [Actor] to [Target unit of ability being cast] (For the graphical effect of the freeze, I'm not really sure how it works)
ACTION - Wait 5 sec (The time you want the Freeze to last)
ACTION - Unpause [Target unit of ability being cast] (This unfreezes the target again)
Another way would be to give the ability an Apply Behavior Effect that gives the target unit a Buff Behavior that using Modifications+ suppresses its movement, and attack. And of course you can time the buff by giving it a period and a max periods of 1.
This is the preferred method of doing it over using triggers. More reliable.
Any word on how to pause the unit's animations during the effect? What gets me is that there is actually an 'anim pause' actor message, but I can't for the life of me get it to actually work xD
In the same modifications+ tab there are some state flags (near supress movement and supress attack) called stasis and no draw. Did you try either of those?
In behavior modification, there is a field called Time Scale.. Reduce it to 0.01 would make affected unit nearly freeze (MS,AS,Cast speed, whatever are reduced to 0.01) This is useful to slow down anything, missile is a little too fast to they still move in near normal speed.
Combine with suppress Attack or Movement would make affected unit freeze completely (As its time scale is 0.01 so the animation is freeze too!)