• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spell Damage Question

Status
Not open for further replies.
Level 1
Joined
Jan 15, 2007
Messages
5
Sorry to bother again, but I was wondering if there is any means of determing when a spell damages a generic unit.

Example: Say I cast Storm Bolt, I am looking to find when the Storm Bolt Animation actually hits a unit and damages then.

PS. I am using the Normal Editor with GUI Triggers.

-The Puker
 
Level 6
Joined
Jan 7, 2007
Messages
247
Nah.
Its very simple
just use:
*wait - distance between targets/animation speed*
:p
 
Level 10
Joined
Jan 21, 2007
Messages
576
But what if the unit uses a speed buff, gets slowed, moves backwards sideways ect. Then *wait - distance between targets/animation speed* wouldnt work.
 
Level 1
Joined
Jan 15, 2007
Messages
5
Fixed

Thanks for all the replies.

I am gave the spell a unique buff, added a trigger that sets a unit variable to the target and then turns on another trigger which checks every 0.2 seconds for that unique buff. Once the trigger executes I have it turn itselfs off.

So far its working great :)

-The Puker
 
Status
Not open for further replies.
Top