ah, I see what he wants now.
Afaik, all knockback systems move unit a little bit (like 5 range) every 0,03 second in "angle from caster to target".
0,03 second and small range are used because it gives our eyes the impression of fluent movement
So I have to define *somewhere* as the angle of the unit in question?that is the very same thing
"Issue order targeting a point" orders unit to move *somewhere*
You have to define where *somewhere* is - in your case, it is a "point" in front of that unit ("in front" as in where the unit is facing)
Oh... Now I get it, thanks.that is the very same thing
"Issue order targeting a point" orders unit to move *somewhere*
You have to define where *somewhere* is - in your case, it is a "point" in front of that unit ("in front" as in where the unit is facing)
something like this:
p1 and p2 are "point" variables.
- Actions
- Set p1 = (Position of YOUR_UNIT)
- Set p2 = (p1 offset by 256.00 towards (Facing of YOUR_UNIT) degrees)
- Unit - Order YOUR_UNIT to Move To p2
That trigger will order unit to move forward by 256 range
By specific I meant the facing angle of a unit I pick.Specific angle?
Have you tried using this function in a point variable:
Math - Angle from p1 to p2
Never played that...Like the Worm Head in the Worm War map, maybe?
I want him to walk at whatever direction a specific unit is looking at, forever.
- Angles
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set p1 = Position of YourUnit
- Set p2 = Position of YourUnit offset by p1 + YourOffset towards YourAngle (0.00 ~ 360.00)
- Unit - Move YourUnit instantly to p2
Nah, nothing to do with animations; I just want him to walk in the direction of whatever unit I choose is looking at, and he just keeps walking and walking, without stopping.If u want to play an animation while moving a unit u need to move unit periodically using the custom script SetUnitX/Y
ThanksOh you want him to walk without stopping?
- Angles
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set p1 = Position of YourUnit
- Set p2 = Position of YourUnit offset by p1 + YourOffset towards YourAngle (0.00 ~ 360.00)
- Unit - Order YourUnit to Walk to p2