• 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.

[Trigger] Timing of Special Effects on Attacked Unit (need help)

Status
Not open for further replies.
Level 3
Joined
May 11, 2008
Messages
22
I'm trying to make a special effect to play on a unit after it is hit by a missile. Problem is that I don't know how to time it such that the effects will occur exactly on impact.
It cannot be done simply with "event-unit is attacked" then "action-create special effect on attacked unit" since the "unit is attacked" event refers to the time the missile is launched and not when it actually hits the unit. What happens is that the special effect occurs when the missile has not yet hit the target. You can't just put a constant wait time since it will depend on the speed of the missile and the distance.
So how do you make the computation for the delay based on those? :con:
If possible, a non-JASS solution...
 
Level 3
Joined
Jul 6, 2008
Messages
42
Well , I will advice to add a ability to the unit .
The ability is base on lighting attack (Located at Night Elf -> Units) .

lightingattackgl1.jpg


To create the effect you describe , change the Art - Target into the effect you want to .
But the weakness of this is the effect you made will moving follow the unit you attack.
Remember to set Data - Graphic Delay and Data Graphic Duration to 0 .
It is use for lighting effect.
 
Status
Not open for further replies.
Top