can't use camera position in equasion, help!

var rr2:float;

function Update(){

rr2 = Camera.main.transform.position.x;
rr2 = rr2*(1/3)*(-1);



it prints 0. I cannot get it to ever multiply the Camera.main.transform.position.x by anything. it always computes 0 if I try to do that. please help me see what I'm doing wrong.

1/3 is 0 - use 1/3.0 instead (i.e. use a floating point division instead of an integer division)

You might have a rounding problem. I would try this:

rr2 = -rr2 * (1.0f / 3.0f);