Thanks again for your help. However, I am not getting this to work. The object rotates by just moving the mouse, even if no mouse button is pressed. Here is my code:
if (mouse_left){
action rotate()
{
while(1)
{
my.pan += mouse_force.x; // mouse movement changes PAN
my.tilt += mouse_force.y; // mouse movement changes TILT
wait(1);
}
}
}