'Sticky' cursor

Hi, all!

I was wondering if anyone had a clever idea as to how to create a ‘sticky’ crosshair / mouselook.

I’m not searching for a ‘Lock On’ function - just a partial one. Like, when a player hovers over an enemy, it’s just a little more difficult to keep the cursor from following it. Like, the player would have to aim, say, x units in any direction away from the enemy to get the camera and cursor from focusing on it.

I feel that this would greatly increase my game’s playability.

So. any ideas?

Thanks! - YA

What you could do is when your cursor gets near the target you set your cross-hair to the target but not the cursor and when the cursor gets out of a certain range then you set the cross-hair back to the cursor.