Increment movement

Hello,

This is my first post here and already posting a issue with a code.

Trying to make grid movement like in Might and Magic X.Players moves by grid in direction of camera and with Q and E user rotate the camera.

At moment I have a two movement scripts with different problems.

In image " WorkingMovement ", grid increment movement works. But when I press Q or E to rotate camera, player doesn’t go in direction of camera.

In image " InputAxisMovement ", Q and E rotation works and players moves in direction of camera, but it doesn’t have increment grid movement.

Does somebody have solution or right direction to this ?

Also posted all other code that I have and I’m using a First Person Temple.

Cheers,

Tried bunch of scripts, still goes relative to world rotation in " Working Movement " script.

Does somebody have solution to this ? How can I move relative to view from camera ?

Cheers,