-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setPedAimTarget doesn't work on players #380
Comments
When making an FPS type camera I encounter the same issue. I think that maybe it isn't posible to do that because sync or maybe because it could be exploited from a client to make a sort of autoaim, thing that i doubt. |
Indeed useful for recoil, auto-aim, sniper-scope sway and maybe even more stuff. What happens if you comment this out: |
@Jusonex said:
|
I would really like to see this fixed because i am working on a script that requires the local player to aim at a certain point while the camera is set by setCameraMatrix(). However, has still no one tried commenting out "if ( !m_bIsLocalPlayer )" ? I would try it myself but i have no clue where to find that code snippet and how to compile it after changing it. |
I tried removing all local player checks and it still didn't change the aiming direction of the local player. |
Describe the bug
setPedAimTarget has no effect on players.
Expected behavior
setPedAimTarget should work, at least when the camera isn't focused on the local player. That would give scripters more control over shooting, especially when they want to script the camera themselves (such as FPS).
Additional context
@Kenix157 said:
From https://bugs.mtasa.com/view.php?id=5665
The text was updated successfully, but these errors were encountered: