Problem with unit attack animation when casting spell

JuffoWup

New Member
Reaction score
6
Ok, the problem is pretty simple here, I got spell that fires frost bolt and the spell is working fine. Its the animation I'm stuck with, you see the projectile
is launched before the attack animation is played, thich causes the whole spell look pretty damn dorky.

Anyone know how to alter the casting unit's attack animation speed so I could fix this ?
 

waaaks!

Zinctified
Reaction score
256
how about triggers like

E: unit is casting an ability
C: ability being cast equal to ur ability
A: play unit's attack animation

i used casting an ability because casting of the ability is the moment ur hero will stop and cast it, starts the effect of an ability, is like when ur ability starts the cooldown and spent some mana
 

JuffoWup

New Member
Reaction score
6
Thnx for the effort, but the effect is identical just as the spells animation name applied. It just plays the attack animation and the issue remains that the animation is played way too late after the projectile is released
 

waaaks!

Zinctified
Reaction score
256
ok, if still doesnt work

make a dummy ability that u want to cast when the ability is used, then make a trigger like

E: unit starts the effect of an ability
C: ability being cast your ability
A: play unit attack animation
wait 0.10 seconds (change the value for it)
create 1 dummy unit
add stormbolt to last created unit (or the ability u want to be casted)
order last created unit to human - mountain king stormbolt

this trigger will play the unit's animation, and wait for a set amount of seconds then a dummy unit is created and cast the ability, so that the animation plays first than the projectile is launched

try to set the value of the wait, to make it more realistic
 

waaaks!

Zinctified
Reaction score
256
what u mean?

first the frost bolt ability he wants to cast, is casted by a dummy unit when the wait time is over...because before the wait action, the unit casting the ability plays the animation...
 

cleeezzz

The Undead Ranger.
Reaction score
268
if its a normal ability in the object editor (doesn't use any triggers) then he doesnt need a trigger to make the unit Wait. Theres a normal ability called frost bolt too. theres a field called casting time, its designed for the animation. if the ability is a trigger then you have to wait

he never said the ability was a dummy ability (at least i don't see it)
 

JuffoWup

New Member
Reaction score
6
1: The casting time won't work, why ? 'Cause it only makes the caster wait for x amount of time then casting the spell, but it just delays the casting itself
not the animation

2: Waaks plz if you send me triggers, or similiar, could u plz not send "I-GUESS-THIS-WORKS" code-tagless doodles. The "trigger" you gave me causes many issues, and the "last created unit" is highly unsuitable when using dummy units.
 

waaaks!

Zinctified
Reaction score
256
if its unsuitable then create variables?

i cant really give u a wholle trigger, because the pc with the wc3 and WE has no internet, and this pc is an office computer with an internet, so i spend my time here surfing....all the triggers i gave u is hand written, if i have my WE im sure ill give u all the working triggers....so please understand me...
 

cleeezzz

The Undead Ranger.
Reaction score
268
1:'Cause it only makes the caster wait for x amount of time then casting the spell, but it just delays the casting itself
not the animation

if it doesn't delay the casting animation then.. it plays the casting anim and then fires the ice bolt. isn't that what you wanted? and you never said your skill was a dummy
 

waaaks!

Zinctified
Reaction score
256
if u add a casting time to an ability, it doesnt starts the projectile to launch, it waits for a time of seconds and then the projectile launch and the animation is played....

his problem is, when he cast the spell, the projectile launchs faster than playing his animation, in other words late animation.....so, what he wants is to make the animation and projectile plays realistic, like throwing the frost bolt to the enemy
 

JuffoWup

New Member
Reaction score
6
Ok I'm gonna make it r e a l l y simple so that you cannot get it wrong.

What happens now is this

->
my unit

-> - - 0
My unit Projectile
casting
spell

-> - - - - 0
My unit Projectile flying away
playing
animation
(at wrong
time)

EDIT* Yes waaaks! got it perfectly
 

waaaks!

Zinctified
Reaction score
256
thats what the trigger i posted with the wait time, it plays the animation first before the projectile is launched
 

JuffoWup

New Member
Reaction score
6
Yes, and don't get insulted by this, but the trigger with "last unit" crap is so absolute shit I stopped using it back when I learned whew thing like leaks etc.

And even if i did use it, the dummy unit would somewhat scrap my concept of the ability I want to create
 

JuffoWup

New Member
Reaction score
6
I think I ... Yes I did. I said that using dummy unit will scrapt my ability concept pretty much to shit.
 

illidan92

New Member
Reaction score
6
I didn't take the time to read the replies but check the backswing (or maybe damage? or both added?) point under attack - 1 of the unit, and then add a PolledWait for however long that is before you start the triggered effects.

Or if its not triggered under animation field in object editor change the casting backswing points.
 

JuffoWup

New Member
Reaction score
6
So that is what backswing point affects ?

I go give it a try as soon as I get home from work.

Thnx in advance
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top