I already have moving forward, backward, and turning while stationary down. It's pretty solid actually, but my issue is turning while moving forward.
The method I use at the moment will stop the unit from moving for a short time, angles them quickly, then finally continues to move them forward however this method creates very choppy turning. Instead I want to order the unit to move in new direction based on their current direction without having to stop them to turn them. I was just wondering if anyone had any ideas about how to achieve this.
This is the action I'm currently using to move my unit forward.
Unit - Order Spectre [116.03, 131.92] to ( Move targeting ((Position of Spectre [116.03, 131.92]) offset by 5.0 towards (Facing of Spectre [116.03, 131.92]) degrees)) (After Existing Orders)
I'm hoping maybe someone knows a way to adjust the (Facing of Spectre [116.03, 131.92]) degrees) to some how add and subtract from the degrees of the angle.
lol, I figured it out and now I feel silly because it was so simple.
Unit - Order Spectre [116.03, 131.92] to ( Move targeting ((Position of Spectre [116.03, 131.92]) offset by 5.0 towards ((Facing of Spectre [116.03, 131.92]) + 22.5) degrees)) (Replace Existing Orders)
Simply changed (facing of unit) at the end with (arithmetic (real)) and made the value facing of unit + or - whatever degree I want.
I already have moving forward, backward, and turning while stationary down. It's pretty solid actually, but my issue is turning while moving forward.
The method I use at the moment will stop the unit from moving for a short time, angles them quickly, then finally continues to move them forward however this method creates very choppy turning. Instead I want to order the unit to move in new direction based on their current direction without having to stop them to turn them. I was just wondering if anyone had any ideas about how to achieve this.
This is the action I'm currently using to move my unit forward.
Unit - Order Spectre [116.03, 131.92] to ( Move targeting ((Position of Spectre [116.03, 131.92]) offset by 5.0 towards (Facing of Spectre [116.03, 131.92]) degrees)) (After Existing Orders)
I'm hoping maybe someone knows a way to adjust the (Facing of Spectre [116.03, 131.92]) degrees) to some how add and subtract from the degrees of the angle.
lol, I figured it out and now I feel silly because it was so simple.
Unit - Order Spectre [116.03, 131.92] to ( Move targeting ((Position of Spectre [116.03, 131.92]) offset by 5.0 towards ((Facing of Spectre [116.03, 131.92]) + 22.5) degrees)) (Replace Existing Orders)
Simply changed (facing of unit) at the end with (arithmetic (real)) and made the value facing of unit + or - whatever degree I want.