I have been trying to do this a lot but with no result. Here is a detailed description:
The caster fires a fireball (I am using the yamato cannon model) at target location
Info about casting: if the target point is 10 range away from the caster and ability range is 5 the caster MUST NOT move towards the target point (just the fireball will die half-way),
When the fireball hits a unit the following things must happen:
The unit takes damage
The fireball is destroyed
Units around the fireball take damage (depending on the distance to the collision point)
The unit and all units around the fireball are knocked back (power depends on the distance to the collision point)
If the fireball is destroyed before it has reached a unit the following things must happen:
All units around the collision point take damage and are knocked back depending on the distance between them and the collision point.
The idea is to create something like the fireball in the war3 map "Warlocks"
I have been trying to do this a lot but with no result. Here is a detailed description:
The caster fires a fireball (I am using the yamato cannon model) at target location
Info about casting: if the target point is 10 range away from the caster and ability range is 5 the caster MUST NOT move towards the target point (just the fireball will die half-way),
When the fireball hits a unit the following things must happen:
The unit takes damage
The fireball is destroyed
Units around the fireball take damage (depending on the distance to the collision point)
The unit and all units around the fireball are knocked back (power depends on the distance to the collision point)
If the fireball is destroyed before it has reached a unit the following things must happen:
All units around the collision point take damage and are knocked back depending on the distance between them and the collision point.
The idea is to create something like the fireball in the war3 map "Warlocks"
I think there are tutorials on force movers, I would look into that as a starting point.