Hello, I'm wanting to create a rotational lock on system that locks onto players and npcs. I don't want someone to flat out make it but rather if someone could help push me in the right direction by linking some useful functions, wiki posts etc to accomplish this. I already have a thirdperson and a detection system to determine if the target is valid for the lock on once in place but I'm at a bit of a loss as to how I would lock the players crosshair onto the target restricting movement to only around said target. Any help is greatly appreciated
Player/SetEyeAngles to (targetPos - EyePos()):Angle()
Do note that EyePos() will only work if you're in a render context. If not, ply:EyePos() is a much more stable alternative.
Sorry, you need to Log In to post a reply to this thread.