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

rapid firing

Status
Not open for further replies.
Level 3
Joined
Aug 4, 2007
Messages
45
Can anyone tell me how to do a spell so that the unit rapidly fires projectiles at a target area? like the spell crossfire for rose in desert of exile, or the jhita bones ultimate in advent of the zenith?
 
Level 3
Joined
Aug 4, 2007
Messages
45
kinda, just that instead of all these projectiles coming out at once in an arc, i want projectiles to come out in a straight line very fast, and actually have the hero doing his attack animation
 
Level 4
Joined
Feb 22, 2005
Messages
110
The spell is based on some AOE targeted spell (Blizzard, Cluster Rockets)

Then it turns the hero's animation speed to higher, plays it a few times, creates dummy units in front of the hero, creates a loop which moves those units and checks if there's enemy unit to those dummy units in range or if their distance from shooting point is X. If either of these is true, it destroys that dummy unit and damages the enemy hit.
 
Level 10
Joined
Sep 21, 2007
Messages
517
i suggest using dummy units that can attack-ground for this but its your choice.
it can be done via triggers but you need to create a good arc and give them an expiration timer which expires based on the distance. you also would need to check if any units are near so it may explode and that the flying heights match or the missiles flying height is lower than the nearby enemy's flying height.

i suggest using a region centered at your ability target (point) of width, height.
dont let width, height confuse you, its just a size.
 
Last edited:
Level 4
Joined
Feb 22, 2005
Messages
110
you just change the arc to 0 for cluster rockets and change the missile speed and model

Except that the spell he was talking about, he chooses an area and starts firing arrows there: If unit is between him and target area, the arrows hit it. If unit is behind the area, arrows still go there, they expire at about 1500 distance.

As far as i know, the spell is JASSed.
 
Status
Not open for further replies.
Top