Lock-On mode with shiftlock problem

  1. What do you want to achieve? Keep it simple and clear!
    I wanted to make a proper lock-on mode that won’t breakout if you press shiftlock

  2. What is the issue? Include screenshots / videos if possible!
    I already have the lock-on mode script that will automatically lock-on the player we attacked and our body will always facing at the opponent. But the problem is if we lock-on to the player while having shiftlock on our body will not face at the opponent properly and turn to the left by a bit and effects the hit-box and won’t beable to hit the opponent easily.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried searching but there’s nothing that I was looking for, I tried changing the mouse type but it broke the shift lock

Also sorry for the grammar :laughing:

Thanks

You can disable shiftlock by setting StarterPlayer.EnableMouseLockOption to false.

1 Like

I tried that but the mouse lock is still on and now you cant turn it off