open.mp forum
[Pawn] Help! How to make an auto aiming feature towards other characters with fuction stock? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Help! How to make an auto aiming feature towards other characters with fuction stock? (/showthread.php?tid=1943)



Help! How to make an auto aiming feature towards other characters with fuction stock? - PutuSuhartawan - 2021-04-24

How to make an auto aiming feature towards other characters with the help of the stock function that you know??



I see that many people find it difficult to make their characters automatically point to the faces of the characters near them around the draw station because they don't understand the function or stock that makes the leader's angle of this character look at each other?


RE: Help! How to make an auto aiming feature towards other characters with fuction stock? - AbyssMorgan - 2021-04-27

Code:
SetPlayerLookAtPlayer(playerid,targetid,cut=CAMERA_CUT);



from 3DTryg

https://www.burgershot.gg/showthread.php?tid=1898


RE: Help! How to make an auto aiming feature towards other characters with fuction stock? - PutuSuhartawan - 2021-04-28

And what about full aiming function sir? for example aiming chest?


RE: Help! How to make an auto aiming feature towards other characters with fuction stock? - AbyssMorgan - 2021-04-28

I made an attempt today, and it turns out that once the camera view position has been set, the player cannot rotate the camera.

Now i know SetPlayerLookAtPlayer feature is useless.