• 🏆 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!

explosion on impact spell

Status
Not open for further replies.
Level 3
Joined
Aug 4, 2007
Messages
45
May someone help me on a spell where the hero casts a spell, it sends out a <projectile> and the first unit the <projectile> hits the <projectile> will explode, dealing aoe damage, and if the <projectile> doesn't meet an enemy unit, it will explode when it reaches its maximum distance
 
Level 3
Joined
Mar 2, 2008
Messages
62
you would have to use a dummy unit as the projectile, and move it forward periodically (use a timer). every instance check if its within X range of a unit, and if it is... BOOM.
 
Status
Not open for further replies.
Top