Karst
Member
- Reaction score
- 4
Hello everyone. I posted about this a couple days ago but I'm still having trouble and I simply don't think I can figure this out without outside help.
I'm working on a spell which creates a stream of projectiles (10 IIRC).
These are released in rapid succession in the facing direction of the casting unit. They travel in a straight line until they come within 120 range of a valid target (organic, alive, enemy, ground), are then killed and cause AOE damage.
The damage is not triggered; instead the projectiles have AOE damage upon death - I figured this is simpler and it works quite well.
I started learning JASS to create this ability, and got it to do what I want it to.
However, I have since learned that Kattana's handle vars are outdated, the spell also leaks horribly, so I decided I'll probably start from scratch.
The way I understand it, I will have to use structs. So far I haven't been able to really grasp the concept, and also all struct tutorials I've read so far are used for very different things than what I need and I simply don't know how to do this.
Basically, I need a timer that creates the projectiles and another that moves them, and kills them when a target is in range.
I also plan on adding AOE knockback which pushes units away from the (dead) projectile's location, but that's not high priority. First I need the ability to work leak-free, MUI.
This is what it looks like now. Well, a pretty bad screenshot actually, I hope you get the idea.
I'm working on a spell which creates a stream of projectiles (10 IIRC).
These are released in rapid succession in the facing direction of the casting unit. They travel in a straight line until they come within 120 range of a valid target (organic, alive, enemy, ground), are then killed and cause AOE damage.
The damage is not triggered; instead the projectiles have AOE damage upon death - I figured this is simpler and it works quite well.
I started learning JASS to create this ability, and got it to do what I want it to.
However, I have since learned that Kattana's handle vars are outdated, the spell also leaks horribly, so I decided I'll probably start from scratch.
The way I understand it, I will have to use structs. So far I haven't been able to really grasp the concept, and also all struct tutorials I've read so far are used for very different things than what I need and I simply don't know how to do this.
Basically, I need a timer that creates the projectiles and another that moves them, and kills them when a target is in range.
I also plan on adding AOE knockback which pushes units away from the (dead) projectile's location, but that's not high priority. First I need the ability to work leak-free, MUI.
This is what it looks like now. Well, a pretty bad screenshot actually, I hope you get the idea.