I have an ability that applies a buff, I would like whatever target of the buff to stop animating while its effected by the buff. Is there a way to do this through Actor - Event: Events + ? So that no matter what is targeted it can be handled by one event term?
How do i go about setting the Global Time Scale? If you wouldn't mind elaborating. Do I do this through an Actor Event? If so, what actor do I use? Because I want it to effect whatever actor is effected by the ability.
You probably use a sort of stun behavior? In this case, create an actor, type Model, based on either Model Animation Style Continuous (with spaces! there are 2 of them) or ModelAddition.
Choose a model of your liking (or Invisible, if there should not be any additional graphics) and add the following actor events:
Behavior.X.on
create
Behavior.X.off
destroy
ActorCreation
AnimSetTimeScaleGlobal 0.0001
Actor Destruction
AnimSetTimeScaleGlobal 1
Now modify the Target - field for the time scale messages. It is the topmost field if you select the message. Write ::Main or _Selectable in the text field; this way it will affect the main unit actor of the affected unit, instead of this actor.
Do not set the time scale to 0, it will malfunction.
I tried doing what you said, but failed. I'm only able to change AnimSetTimeScale, nothing about GlobalTimeScale. I created the actor like you said and set everything accordingly except for the AnimSetTimeScale, didn't see GlobalTimeScale. I get a Warning saying something about Model Cache Link, Failure to Initialize. What am I missing?
Thanks again Kueken. I was wondering if you might be able to tell me how to restrain a units rotation while buffed also? I thought I could do this with the movement tab under modification, but no such luck.
Thanks again Kueken. I was wondering if you might be able to tell me how to restrain a units rotation while buffed also? I thought I could do this with the movement tab under modification, but no such luck.
One of the behavior modification flags is Disable Turning I believe.
Edit: Yes, it is Behavior - Modification - Modify Flags: Suppress Turning - Enabled
I have an ability that applies a buff, I would like whatever target of the buff to stop animating while its effected by the buff. Is there a way to do this through Actor - Event: Events + ? So that no matter what is targeted it can be handled by one event term?
Yep. You can use the Set Global Time Scale message an set the Target to ::Main or _Selectable
@Kueken531: Go
How do i go about setting the Global Time Scale? If you wouldn't mind elaborating. Do I do this through an Actor Event? If so, what actor do I use? Because I want it to effect whatever actor is effected by the ability.
Yes, you use an actor event.
You probably use a sort of stun behavior? In this case, create an actor, type Model, based on either Model Animation Style Continuous (with spaces! there are 2 of them) or ModelAddition.
Choose a model of your liking (or Invisible, if there should not be any additional graphics) and add the following actor events:
Now modify the Target - field for the time scale messages. It is the topmost field if you select the message. Write ::Main or _Selectable in the text field; this way it will affect the main unit actor of the affected unit, instead of this actor.
Do not set the time scale to 0, it will malfunction.
@Kueken531: Go
Thanks a bunch!
@Kueken531: Go
I tried doing what you said, but failed. I'm only able to change AnimSetTimeScale, nothing about GlobalTimeScale. I created the actor like you said and set everything accordingly except for the AnimSetTimeScale, didn't see GlobalTimeScale. I get a Warning saying something about Model Cache Link, Failure to Initialize. What am I missing?
In the list, it is called Set Time Scale Global; once you selected it, it will show up as AnimSetTimeScaleGlobal
Did you change the model to Invisible? Just selecting no model at all produces this error.
@Kueken531: Go
Thanks again Kueken. I was wondering if you might be able to tell me how to restrain a units rotation while buffed also? I thought I could do this with the movement tab under modification, but no such luck.
One of the behavior modification flags is Disable Turning I believe.
Edit: Yes, it is Behavior - Modification - Modify Flags: Suppress Turning - Enabled
Dont forget the Animation Set Paused All event action
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg