Hey there, just a quick question. Let's say I have a missile ability that targets a point on the ground, used by a flying unit. How do I make that missile rotate while it moves to its target?
Also, I know how to make a unit attack while moving, but how do I make it face the unit it is targeting?
you have to change the mover of the missile, there is a mover tutorial made by blizz or just check out the premade movers (there should be a rotating one).
if the unit faces its target it cannot move and attack except you exactly move into that direction (or disable turning while moving, turn unit with triggers, needs some testing)
Also, I know how to make a unit attack while moving, but how do I make it face the unit it is targeting?
As far as I can tell this is impossible to do. All units need to face the direction they are moving.
It might be possible via some form of actor hackery to detach the unit's actor model and rotate that to face some direction however the unit will still physically face the direction of movement.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey there, just a quick question. Let's say I have a missile ability that targets a point on the ground, used by a flying unit. How do I make that missile rotate while it moves to its target?
Also, I know how to make a unit attack while moving, but how do I make it face the unit it is targeting?
Thanks!
you have to change the mover of the missile, there is a mover tutorial made by blizz or just check out the premade movers (there should be a rotating one).
if the unit faces its target it cannot move and attack except you exactly move into that direction (or disable turning while moving, turn unit with triggers, needs some testing)
As far as I can tell this is impossible to do. All units need to face the direction they are moving.
It might be possible via some form of actor hackery to detach the unit's actor model and rotate that to face some direction however the unit will still physically face the direction of movement.