Check When Spell Animation Hits

jhnam95

Active Member
Reaction score
12
How do I check when a spell's animation hits. I don't want something happening to the unit when my storm bolt is still in the air. Any suggestions?
 

hgkjfhfdsj

Active Member
Reaction score
55
i dont think there is a direct method to detect this..
- solutions i know of
- trigger the projectile itself and damage on collision
- order a dummy to fire the projectile at position of caster when spell effect fire, attach the caster data (eg using hashtable) to the dummy and detect when it deals 0.0 damage, unit type of damage source equal to 'dummy' using a Damage Detection System then do your stuff from that.
- add spell shield then detect when casted (not recommended/tested/as accurate as the other 2)
 

envenger

Active Member
Reaction score
3
i just thought of this don't know how it will work but if it works it would be easier

when the casts starts find the distance between both the units then according to the projectile speed set a trigger which adds a "wait" the the effect

eg. if projectile speed is 600 and distance is 1200 then projectile will take 2sec to reach so 1200/600 so add a 2secs wait after which the trigger takes place. if u test this u would know more but i think it will work :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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