i allready read this workshop, thanks
i have this code
//////////////////////////////////////////////////////////////////////////////////////////////////////////
starter move_panel
{
{
var pan_pos[3];
while(1) {
pan_pos.x = clamp(mouse_cursor.x + 100, 100, screen_size.x - 100);
pan_pos.y = clamp(mouse_cursor.y + 100, 100, screen_size.y - 100);
plBipedWeap00_crosshair1_pan.pos_x = pan_pos.x;
plBipedWeap00_crosshair1_pan.pos_y = pan_pos.y;
wait(1);
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
this code works, but not very fine
i can control the crosshair with the mouse and the player follows the crosshair
but if i go to any corner with the crosshair, the crosshair will hang for a short time at this corner
i have no idea why?