The problem is that animation playing too fast (cuz of my prep time), If i set time to play for 1 second for example, it will played not until end and stops after 0.5 seconds. I want my animation to be played few seconds more after the missile has launched, but i still need the possibility to cancel ability animation. How to solve this?
I will be more specific: How to clear animation when any abli exept this one cast?? I know that it is possible in triggers but im searching for clean data solution
Okay guys, so i have :
Type of ability - Effect-target, launch missile
Preparation time 0.5 sec
i have actor events:
abil.MYABIL.SourcePrepStart - play abil animation
abil.MYABIL.SourcePrepStop - clear abil animation
The problem is that animation playing too fast (cuz of my prep time), If i set time to play for 1 second for example, it will played not until end and stops after 0.5 seconds. I want my animation to be played few seconds more after the missile has launched, but i still need the possibility to cancel ability animation. How to solve this?
I will be more specific: How to clear animation when any abli exept this one cast?? I know that it is possible in triggers but im searching for clean data solution
@abvdzh: Go
You will just need to add a different actor event is all
abil.MYABIL.SourcePrepStart - play abil animation <- you can keep this one, and set the flags to just "play once"
abil.MYABIL.SourcePrepStop - clear abil animation <- take this one out and replace it with something along the lines of:
Event: abil.MYABIL.SourceCancel Add Term: anim playing abil animation Action: animationClear abil animation
thanks man but i already fix this by using very simple trigger, it just clear this animation when my hero gets any order. Thats work perfectly.
Rather use an actor event else you will find lag problems if there are alot of those units.
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
The proper way of doing this with data is "Unit Movement Update - Any - Any"
"Animation Clear"
Movement update doesnt help at all just tried it. I didnt noticed any lag from trigger, i had much more significant lag when abil used lots of models
Lag from models hints at looping creations/timers.
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