• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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