There are several tutorials and maps to download on this, if you search you should find one.
The basics are, when a player presses forward it increases a variable, when they release it it decreases the variable. A check is done perodicly, if variable right it runs order unit to move to position ov unit ofset by 100 facing angle of unit degrees.
To get the camera to follow just lock the camera target to possition of the unit.
Its easy to understand from the tutorials. |