CODE
position(string axis, float value)
{
vector pos_current = llGetPos();
//depending on what axis is, modify the corresponding attribute x,y, or z
if(axis == "x")
pos_current.x = value;
if(axis == "y")
pos_current.y = value;
if(axis == "z")
pos_current.z = value;
llSetPos(pos_current);
llOwnerSay("Repositioning Complete! "+(string)llGetPos());
vector pos_new = llGetPos();
llSay(0, "Coordinates are: "+(string)pos_new.x+" "
+(string)pos_new.y+" "+(string)pos_new.z);
}
Now, my problem is this: the "Repositioning Complete!" line reports the correct value, the one I entered. However, the second report which breaks up the vector, reports an erroneous value! Mind you, these values are minuscule...
[7:22] Object: Coordinates are: 110.000000 103.370003 400.000000
[7:22] Object: Repositioning Complete! <110.00000, 103.37000, 400.00000>
[7:22] Object: Coordinates are: 110.000000 103.370003 400.000000
... But that still shouldn't happen! Right?