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

[Solved] dodge missile

Status
Not open for further replies.
I am currently using an arrow movement system that allows the main unit to side step. My hope was that it could avoid projectiles. It looks great and works well, but no matter how well the unit dodges and how far it misses by, the missile still does damage. Currently I am using a normal attack for the missile, but I could create a spell too.

Is there some simple way to set OE or a simple trigger to make it so that when the missile misses - it does no or little damage?

Some one said they like to see poorly drawn images describing the desired outcome so - here you go.
 

Attachments

  • trigger.jpg
    trigger.jpg
    24.3 KB · Views: 165
Level 37
Joined
Mar 6, 2006
Messages
9,243
I can't think of an easy way.

One option is to use a projectile system.

Another option is to calculate where the missile is going to be when it lands. Units lead targets, meaning they shoot where the target is going to be when the missile lands. But this method has it's own problems and can prove to be difficult.

You could give the attacking unit an ability based on Flak Cannons, it modifies the attack so that it will only damage units near the projectile.

However making the projectile out of a spell could be a better solution.
 
Level 7
Joined
Mar 6, 2006
Messages
282
You can use the normal attack, you just need to make it AoE, like a Demolisher.

Combat - Weapon Type = Artillery

Combat - Area of Effect (Full Damage) = 200
Combat - Area of Effect (Medium Damage) = 1
Combat - Area of Effect (Small Damage) = 1

Combat - Damage Factor - Medium = 0
Combat - Damage Factor - Small = 0


That's an example of the missile doing full damage if it hits, and no splash damage if it doesn't hit (which is what I'm thinking you want).
 
You can use the normal attack, you just need to make it AoE, like a Demolisher.

Combat - Weapon Type = Artillery

Combat - Area of Effect (Full Damage) = 200
Combat - Area of Effect (Medium Damage) = 1
Combat - Area of Effect (Small Damage) = 1

Combat - Damage Factor - Medium = 0
Combat - Damage Factor - Small = 0


That's an example of the missile doing full damage if it hits, and no splash damage if it doesn't hit (which is what I'm thinking you want).

Ya, that should do it. I'll try it. I tried to set it like the cannon tower but I will do it exactly like you said and see if that works.
 
Status
Not open for further replies.
Top