Monsterous
In the Shadows, Lurking.
- Reaction score
- 99
What i want is a unit to keep moving past the target point.
Now, the easiest way i can think of is using an Offset, which i've done. However, the moving unit always moves to the side of the point. However, if i remove the offset, the moving unit goes exactly to the point.
Its strange, because the offset is directed towards that point, so surely the unit would go past the point, as the offset is directed on the unit to the point?
I've tried the angle between the two points, and other methods. The unit simply just goes to the offset, disregarding the position of the ship, the angle between two points, or the degree it is moving.
Basically, can anyone give me another way as to how to make a unit target a point, and go past it in the direction its going? Offsets arent working here for unknown reasons to me. Or if anyone can tell me why my action is wrong.
Now, the easiest way i can think of is using an Offset, which i've done. However, the moving unit always moves to the side of the point. However, if i remove the offset, the moving unit goes exactly to the point.
Its strange, because the offset is directed towards that point, so surely the unit would go past the point, as the offset is directed on the unit to the point?
Code:
Unit - Order (Last created unit) to ( Move targeting (ShipPoint offset by 50.0 towards (Point((X of ShipPoint), (Y of ShipPoint))))) (Replace Existing Orders)
Basically, can anyone give me another way as to how to make a unit target a point, and go past it in the direction its going? Offsets arent working here for unknown reasons to me. Or if anyone can tell me why my action is wrong.