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

line damage that hits first target

Status
Not open for further replies.
Level 3
Joined
Oct 5, 2010
Messages
26
Im making a shooting simulation where the player uses a dummy skill to "shoot" and the game hits the first thing in the line of fire. Spells like shockwave hits in a line but passes through everything. Is there a default spell that hits the first thing in the line?
 
Level 3
Joined
Oct 5, 2010
Messages
26
ok, that will work for my rocket launcher with AOE on death. But what about bullets that hit instantly and without AOE?
 
Level 3
Joined
Jan 4, 2009
Messages
45
Well, it isn't that hard. you could make a dummy unit, let's say, Bullet. When it is fired you star a loop. You move the bullet 5-10 units per loop, and check for collision. This loop happens at once. So there is no "every x seconds game time" nor any "wait x seconds". You simply move the bullet in 0 seconds so it looks like it is instant. And make a small aoe(20-50), cause else it will hardly ever hit a target.
 
Status
Not open for further replies.
Top