I'm trying to create a custom ability where the unit, let's say an ultralisk, would charge toward the target location in a straight line, without regard for pathing, and stops when it reaches the point or encounters a pathing blocker in between. For anyone that knows the map star strikers, essentially I want it to behave very similarly to "push" from that map that every hero has.
I have tried using an issue order -> move and apply a behavior to the unit that checks for collisions to deal damage to enemy units, and that sort of works, but the issue order move would cause the unit to try to circumvent obstacles, instead of just charging in a straight line. Also, in order to get the unit to stop "charging", I use a queued ability that stops the charge and removes the behavior and whatnot, that I learned from a tutorial, but this causes the green waypoints to appear whenever the ability is used. Is there a way to disable the waypoints for this particular ability?
Better yet, anyone have any better ideas for doing this? Clearly it can be done, since it's in star strikers, but I can't think of an elegant way to go about implementing this.
maybe just use the charge from the zealot change it to taget point make an search are that is applyied to all units around the unit doing dmg or whatever to make the unit uncontrolable i think u need to set it in the behavior charge, to make him push just make the behavior give push priority
never done this but this is the simplest way i think it would work else u could do it way easyer with triggers
trigger method make an dummy ability make an trigger with event -anyunit uses ability -action-add behavior to triggering unit(the charge behavior)- action-unit issue order move to point
and after u make an action to remove the behavior
Zealot Charge does nothing but boost movespeed, while the Zealot has an attack order, so probably not the most useful here.
@fReeGenerate: Go
You have many possibilities, how to realize such a spell. You could use many teleport effects in quick succession, you could morph the unit into an air unit to avoid obstacles and give a move order, you could shoot a dummy missile at the target location, you could use triggers to gradually move the unit forward... depends on your specific requirements at this ability and your personal preference ;)
Thanks for all the suggestions, I've actually used a dummy unit missile before for a blink style ability, so I might go with that. The morph air unit also seems like a good idea. I'll give them a shot and report back here which I went with.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to create a custom ability where the unit, let's say an ultralisk, would charge toward the target location in a straight line, without regard for pathing, and stops when it reaches the point or encounters a pathing blocker in between. For anyone that knows the map star strikers, essentially I want it to behave very similarly to "push" from that map that every hero has.
I have tried using an issue order -> move and apply a behavior to the unit that checks for collisions to deal damage to enemy units, and that sort of works, but the issue order move would cause the unit to try to circumvent obstacles, instead of just charging in a straight line. Also, in order to get the unit to stop "charging", I use a queued ability that stops the charge and removes the behavior and whatnot, that I learned from a tutorial, but this causes the green waypoints to appear whenever the ability is used. Is there a way to disable the waypoints for this particular ability?
Better yet, anyone have any better ideas for doing this? Clearly it can be done, since it's in star strikers, but I can't think of an elegant way to go about implementing this.
@fReeGenerate: Go
maybe just use the charge from the zealot change it to taget point make an search are that is applyied to all units around the unit doing dmg or whatever to make the unit uncontrolable i think u need to set it in the behavior charge, to make him push just make the behavior give push priority
never done this but this is the simplest way i think it would work else u could do it way easyer with triggers trigger method make an dummy ability make an trigger with event -anyunit uses ability -action-add behavior to triggering unit(the charge behavior)- action-unit issue order move to point and after u make an action to remove the behavior
Zealot Charge does nothing but boost movespeed, while the Zealot has an attack order, so probably not the most useful here.
@fReeGenerate: Go You have many possibilities, how to realize such a spell. You could use many teleport effects in quick succession, you could morph the unit into an air unit to avoid obstacles and give a move order, you could shoot a dummy missile at the target location, you could use triggers to gradually move the unit forward... depends on your specific requirements at this ability and your personal preference ;)
Thanks for all the suggestions, I've actually used a dummy unit missile before for a blink style ability, so I might go with that. The morph air unit also seems like a good idea. I'll give them a shot and report back here which I went with.