I'm issuing orders to units automatically and things are going well, but I'm struggling to give a point to point based order in westerly and southerly directions because the difference between points is alwasy returned as a magnitude, no sign.
I want to take the integer return of the 'distance between two points' function and make it negative. I've trawled for a function but I can't find one.
(I CAN work round this using a block of math code but that wouldn't make me happy).
Ah. Sometimes as you get older you forget basic shit like.... multiplying by -1
Instead, you write a crap block doing clunky crap with a local variable.
Then you realise it's 06:33
I'm issuing orders to units automatically and things are going well, but I'm struggling to give a point to point based order in westerly and southerly directions because the difference between points is alwasy returned as a magnitude, no sign.
I want to take the integer return of the 'distance between two points' function and make it negative. I've trawled for a function but I can't find one.
(I CAN work round this using a block of math code but that wouldn't make me happy).
@DJSplendid: Go
Just remember, if all else fails, do a barrel roll.