My units move with rts behaviour for pathfinding purposes, and i'm trying to find a way to show the path a selected unit would take before the player decides to move it.
My initial thought was to have an invisible object with rts behaviour and constantly move it starting at the selected units position to the mouse position, and loop it over again and again once it reaches its destination (incase player moves mouse pisition and the route changes). Along the way this invisible object would create other visible objects which would mark the path.
i have 2 problems, the first is moving the invisible object fast enough, and how to spawn the markers at consistant points along the way.
Any help, or other ideas this could be accomplished?