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

Small Tutorial - Missile Impact Check

Status
Not open for further replies.
Level 7
Joined
Oct 13, 2008
Messages
301
Soo-o, This mighta not be new thing for those advanced triggerers out there, But i found out neat way today to check when the missile hit's the targed unit. I don't know is anyone really in need of something like this, But atleat i were because i wanted my dummy unit to cast he's ability right in time when the missile reaches the unit, So i decided to create small example map of it :p.
What this trigger inside the map basically does, Is to calculate the distance between the caster & targed or Caster & Targed point whatever, and / it with the speed of the missile. For example, If the speed of the missile was 1000, Then you woulda create trigger like this; Wait Distance Between (Position Of (Caster) And (Position Of (Targed) /1000. Im glad if i helped with this w/o from request tutorial :p Check the test map's triggers & play it to understand what i mean.
 

Attachments

  • Range Calculator.w3x
    30.4 KB · Views: 49
Level 7
Joined
Oct 13, 2008
Messages
301
When i tested, I still made the effect at right time. Sometimes it might Give 0.2 Second intervals, Just test it :p
 
Status
Not open for further replies.
Top