Here is the idea. Make the following ability:
the hero fires a projectile in a given direction and when the projectile hits something it deals X damage.
This is for my remake of Warlock
To make it collide with cliff, you could make periodic behavior that checks cliff level, to other doodads there might be a way to check, as some doodads can be burned from weapon effect (campaign).
That method (linear beam attack) isn't the same as this method at all and frankly doesn't work anything like this one, its not a missile at all really. The collision effect in this one comes from the rapid search effect being called by a behavior onboard of the missile, to get the missile to behave like a proper one though that nukes itself you need to change what that searcher does. In the example here its just burning everything it gets within range of, instead you want to make a new effect Set and then have both the damage effect and a 'suicideself' effect in that set, then the set should be what the searcher is calling instead.
Now your missile will kill itself when it does damage to something. As Progammer mentioned to get them to also die on cliffs you need something to compare what the cliff height is and if its higher then desired to again call a suicideself effect to remove from game.
Here is the idea. Make the following ability:
the hero fires a projectile in a given direction and when the projectile hits something it deals X damage.
This is for my remake of Warlock
@Paranoiks: Go
Getting the spell to work was easy. Setting up all the actors to make it look/sound decent was... ugh.
@ProxyTooMuch: Go
That's nice, but how to make the projectile explode on collision with unit/wall/doodad ?
@Sntenshi: Go
To make it collide with cliff, you could make periodic behavior that checks cliff level, to other doodads there might be a way to check, as some doodads can be burned from weapon effect (campaign).
@progammer: Go
I could if I knew how to do that.
After posting, I found that http://forums.sc2mapster.com/resources/tutorials/10948-data-simple-one-shot-linear-attacks/#posts, I followed the thing without avoiding anything but the collision is not working. Projectile pass through units and only deal damage on explosion (targeted point).
I tried both ways to do it.
@Sntenshi: Go
That method (linear beam attack) isn't the same as this method at all and frankly doesn't work anything like this one, its not a missile at all really. The collision effect in this one comes from the rapid search effect being called by a behavior onboard of the missile, to get the missile to behave like a proper one though that nukes itself you need to change what that searcher does. In the example here its just burning everything it gets within range of, instead you want to make a new effect Set and then have both the damage effect and a 'suicideself' effect in that set, then the set should be what the searcher is calling instead.
Now your missile will kill itself when it does damage to something. As Progammer mentioned to get them to also die on cliffs you need something to compare what the cliff height is and if its higher then desired to again call a suicideself effect to remove from game.
@BumpInTheNight: Go
I know, I started from new elements with the tutorial, not with this map. ;)
Well, I understand the theory, but the problem is by making it.