• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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