3rd person camera movement with right xbox axis

It just keeps holding me back from finishing this game I work on. I’ve tried to change codes like WOW camera movement etc.

I just can’t seem to make this camera movement work. Is there anyone who has done this before?

I just have a character in 3rd person and the camera needs to move when right axis is being used.

It really would help me out, since the deadline for this is Thursday, and this is the very last stumbling block I have, that I haven’t figured out yet.

Attach this to the camera:

var direction : Vector3();
function Update()
{
transform.position += direction * Input.GetAxis("right") * Time.deltaTime;
}

That doesn’t work for me though. Can you give a little more info? I really don’t get it. (I usually work with c#)

I’ve set “HorizontalRight” to the 4th axis, set the type to joystick axis (also tested with the other ones).
What numbers do I need to set @ gravity, dead and sensitivity? I’ve tried many, still doesn’t work.

Edit:
Nevermind, I’ve got it working with the scrit from unify community, mouseorbit improved C# version.

What I still do need to know is how I do put the camera back behind the character when the character starts walking?

I’ve used the script unifycommunity.com - unifycommunity Resources and Information. the c# version.

I’ve figured that me and camera’s don’t work ='D