Angles
#1

How can I detect the angle of the player, and that depending on that angle an object is thrown to that position? Example, if the character is looking to the right, move to the right
Reply
#2

You can use GetPlayerFacingAngle to get the player angle.
Reply
#3

I have put if (GetPlayerFacingAngle(playerid, Angle) < 90) and it works, I look forward and the function is not activated, I look back and it does not activate, I look to one side and it activates, and I look towards the other side and active, when I think it should be activated when looking at only one side, I have also put if(GetPlayerFacingAngle (playerid, Angle) == 0.25) and the object does not move anywhere it stays in the same position, I do not know if I'm making a mistake
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)