Is it possible to issue an order for a unit to attack move in a angle and not a set point. So that if it comes to an obstacle it will go around it and keep moving at the same angle asap. Meaning that the unit dont know really where it will end up if there allot of obstacles in the way.
You can set a point in relation to the unit that is being given the order. So as it moves side ways, the point will move side ways in relation to the movment of the unit.
Have a timer set to 0.1 or 0.2 and repeat it. Then ever time it expires, have it - Move Point to location of point with Offest. And the offset can be variables that are altered depending on the angle you want the unit to be on.
The other thing you can do is where they run into obstacles, you can make a region there so that if they run into it, they will be ordered to attack a different point making it look like it's running the same angle.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is it possible to issue an order for a unit to attack move in a angle and not a set point. So that if it comes to an obstacle it will go around it and keep moving at the same angle asap. Meaning that the unit dont know really where it will end up if there allot of obstacles in the way.
going like this _/
----And not like this _/
-\_There's no such thing, but you could get something close by a long queue of orders targeting points all aligned on your line.
@Sherlia: Go
You can set a point in relation to the unit that is being given the order. So as it moves side ways, the point will move side ways in relation to the movment of the unit.
Have a timer set to 0.1 or 0.2 and repeat it. Then ever time it expires, have it - Move Point to location of point with Offest. And the offset can be variables that are altered depending on the angle you want the unit to be on.
The other thing you can do is where they run into obstacles, you can make a region there so that if they run into it, they will be ordered to attack a different point making it look like it's running the same angle.