Move gameobjects in the direction the player is facing

Hi, I’m developping a game like mount & blade, so the problem is that i want dispose soldiers in formation (e.g. square, line ecc) and for now i’ve found a simple function that calculate all soldiers position in formation.
I would like to make the soldiers in formation move in the direction the player is facing, but I do not know how to do that.
Any Ideas??

Use the transform.forward vector in your move code. transform.forward*speed